Skip to content

Commit 0fd7a6c

Browse files
committed
Set MyPy's python version, disable a check
The 'method-assign' check was interfering with the previous removal of the "unnecessary" setattrs in ace.py.
1 parent 3ce81cb commit 0fd7a6c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ dependencies = [
7474
[tool.hatch.envs.dev.scripts]
7575
test = "pytest {args:.}"
7676
lint = "ruff {args:delphin/}"
77-
typecheck = "mypy delphin --namespace-packages --explicit-package-bases --ignore-missing-imports"
77+
typecheck = "mypy --namespace-packages --explicit-package-bases --ignore-missing-imports --disable-error-code=method-assign {args:delphin/}"
7878

7979
[tool.hatch.envs.docs]
8080
dependencies = [
@@ -104,3 +104,6 @@ force-wrap-aliases = true
104104

105105
[tool.ruff.format]
106106
quote-style = "single"
107+
108+
[tool.mypy]
109+
python_version = "3.8"

0 commit comments

Comments
 (0)