-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from numpy/another-attempt-at-fixing-mypy
- Loading branch information
Showing
5 changed files
with
42 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,18 @@ | ||
# numtype-test | ||
# NumType testing | ||
|
||
Mypy and basedmypy will only recognize the `src/numpy-stubs` if `numtype` is installed in an | ||
isolated project, and it cannot be editable. | ||
The private `numtype-test` project in this directory provides entrypoints that will run basedmypy | ||
and basedpyright. | ||
|
||
To run basedmypy (`bmp` for short) on the static tests, run | ||
|
||
```bash | ||
uv run static <bmp|bpr|all> [OPTIONS] | ||
``` | ||
|
||
Here, `bmp` runs (based)`mypy`, `bpr` runs `basedpyright`, and `all` runs both. | ||
If no options are provided, it defaults to `static/`. | ||
|
||
To run this form the root `numtype` directory, you can pass an additional `--project=test` flag | ||
to the `uv run` command (i.e. before `static`). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters