Skip to content

Commit

Permalink
Help for pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
patnr committed Feb 27, 2024
1 parent a22e36d commit ca79140
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/dev_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ Make sure you included the dev tools as part of the installation
pip install -e .[dev]
```

*If* you want to be able to use static analysis tools (`pyright`)
all the while use dapper from another directory, you should also **append**
`--config-settings editable_mode=compat` to the above command.
Ref [pyright doc](https://github.com/microsoft/pyright/blob/main/docs/import-resolution.md#editable-installs)
and [pyright issue](https://github.com/microsoft/pylance-release/issues/78).
Alternatively, there is the `extraPaths` setting.

## Run tests

By default, only `doctests` are run when executing `pytest`.
Expand Down

0 comments on commit ca79140

Please sign in to comment.