Skip to content

Commit

Permalink
switch to mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Dec 17, 2024
1 parent 0643a23 commit 4eb7921
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ github_org: epics-containers
package_name: vdct2template
pypi: true
repo_name: vdct2template
type_checker: pyright
type_checker: mypy
11 changes: 5 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ requires-python = ">=3.10"
[project.optional-dependencies]
dev = [
"copier",
"mypy",
"pipdeptree",
"pre-commit",
"pyright",
"pytest",
"pytest-cov",
"ruff",
Expand All @@ -45,9 +45,8 @@ name = "Giles Knap"
[tool.setuptools_scm]
version_file = "src/vdct2template/_version.py"

[tool.pyright]
typeCheckingMode = "standard"
reportMissingImports = false # Ignore missing stubs in imported modules
[tool.mypy]
ignore_missing_imports = true # Ignore missing stubs in imported modules

[tool.pytest.ini_options]
# Run pytest with all our checkers, and don't spam us with massive tracebacks on error
Expand Down Expand Up @@ -80,10 +79,10 @@ passenv = *
allowlist_externals =
pytest
pre-commit
pyright
mypy
commands =
pre-commit: pre-commit run --all-files --show-diff-on-failure {posargs}
type-checking: pyright src tests {posargs}
type-checking: mypy src tests {posargs}
tests: pytest --cov=vdct2template --cov-report term --cov-report xml:cov.xml {posargs}
"""

Expand Down

0 comments on commit 4eb7921

Please sign in to comment.