Skip to content

Commit 69decf9

Browse files
committed
ci: add pyright to pre-commit and consolidate type checker config into pyproject.toml
1 parent 4c6e60a commit 69decf9

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,29 @@ package = "https://pypi.org/project/deeptab/"
6666

6767
# code quality tools
6868
[tool.pyright]
69-
ignore = []
70-
reportMissingImports = true
71-
reportMissingTypeStubs = false
69+
include = ["deeptab", "tests"]
70+
exclude = [
71+
"**/__pycache__",
72+
".venv",
73+
"build",
74+
"dist",
75+
"docs",
76+
"notebooks",
77+
"examples",
78+
]
79+
7280
pythonVersion = "3.10"
81+
typeCheckingMode = "basic"
7382
venvPath = "."
7483
venv = ".venv"
7584

85+
reportMissingImports = true
86+
reportMissingTypeStubs = false
87+
reportPrivateImportUsage = false
88+
reportUnknownMemberType = false
89+
reportUnknownArgumentType = false
90+
reportUnknownVariableType = false
91+
7692
# Configure code linting
7793
[tool.ruff]
7894
line-length = 120

0 commit comments

Comments
 (0)