Skip to content

Commit bfa1ca9

Browse files
committed
better mypy config
1 parent a7ea9af commit bfa1ca9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,20 @@ ignore = ["D205", "D203", "D212", "D415", "C901", "A005", "C420"]
126126

127127
[tool.mypy]
128128
mypy_path = ["src", "$MYPY_CONFIG_FILE_DIR/stubs"]
129+
files = ["src", "tests"]
130+
exclude = [
131+
'^\.cache/',
132+
'^\.git/',
133+
'^\.github/',
134+
'^\.pytest_cache/',
135+
'^\.ruff_cache/',
136+
'^\.tox/',
137+
'^\.venv/',
138+
'^\.vscode/',
139+
'^fixtures/',
140+
'^logs/',
141+
'^site/',
142+
]
129143
plugins = ["pydantic.mypy"]
130144

131145
[tool.codespell]

0 commit comments

Comments
 (0)