Skip to content

Commit 4dc1348

Browse files
committed
Use pyproject.toml for mypy options; remove re-export mypy check.
1 parent fefadba commit 4dc1348

File tree

5 files changed

+8
-24
lines changed

5 files changed

+8
-24
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ jobs:
5555
python-version-file: 'pyproject.toml'
5656

5757
- run: pip install -e . --group typing
58-
- run: ./run.sh typing
58+
- run: mypy

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ omit = [
168168
[tool.coverage.paths]
169169
source = ["src", "*/site-packages"]
170170

171+
[tool.mypy]
172+
files = ["src"]
173+
show_error_codes = true
174+
pretty = true
175+
strict = true
171176
[[tool.mypy.overrides]]
172177
module = [
173178
"reader.__main__",

run.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,7 @@ function test-all {
7474

7575

7676
function typing {
77-
mypy --strict --show-error-codes src "$@"
78-
79-
mkdir -p build
80-
local import_all=build/import_all.py
81-
python scripts/generate_import_all.py > "$import_all" \
82-
&& mypy --strict --show-error-codes "$import_all" "$@" \
83-
&& rm "$import_all"
77+
mypy "$@"
8478
}
8579

8680

scripts/generate_import_all.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ commands =
2828

2929
[testenv:typing]
3030
dependency_groups = typing
31-
commands = ./run.sh typing
31+
commands = mypy
3232

3333
[testenv:docs]
3434
dependency_groups = docs

0 commit comments

Comments
 (0)