Skip to content

Commit

Permalink
Use pytest-mypy for type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
twizmwazin committed Jan 17, 2024
1 parent 69b41bf commit 514a1a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ repos:
- id: rst-directive-colons
- id: rst-inline-touching-normal

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
args: [--strict]

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.15
hooks:
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ dev = [
"pre-commit>=3.2.2",
"pytest>=7.3.1",
"pytest-cov>=4.0.0",
"pytest-mypy>=0.10.3",
"ruff>=0.0.262",
]

Expand All @@ -37,7 +38,7 @@ strip = true
sdist-generator = "cargo"

[tool.pytest.ini_options]
addopts = "--tb=native --cov=binharness --cov-report lcov:.lcov --cov-report term-missing"
addopts = "--tb=native --cov=binharness --cov-report lcov:.lcov --cov-report term-missing --mypy"
markers = ["linux", "darwin", "win32"]

[tool.coverage.run]
Expand Down

0 comments on commit 514a1a1

Please sign in to comment.