Skip to content

Commit

Permalink
move pre-commit to a separate repo to prevent it from attempting to b…
Browse files Browse the repository at this point in the history
…uild the package when the hook gets installed
  • Loading branch information
DetachHead committed Jun 23, 2024
1 parent 69a85d7 commit 8ec869a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
9 changes: 0 additions & 9 deletions .pre-commit-hooks.yaml

This file was deleted.

13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,20 +399,13 @@ integration with [pre-commit](https://pre-commit.com) is also supported.
# .pre-commit-config.yaml
repos:
- repo: https://github.com/DetachHead/basedpyright
rev: v1.8.0
- repo: https://github.com/DetachHead/basedpyright-pre-commit-mirror
rev: v1.13.0 # or whatever the latest version is at the time
hooks:
- id: basedpyright
```

to ensure that basedpyright is able to find all of the dependencies in your
virtual env, add the following to your `pyproject.toml`:

```toml
[tool.basedpyright]
# ...
venvPath = "."
```
for more information, see the documentation [here](https://github.com/DetachHead/basedpyright-pre-commit-mirror/blob/main/README.md)

# recommended setup

Expand Down

0 comments on commit 8ec869a

Please sign in to comment.