Skip to content

Commit

Permalink
Enable type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
tysmith committed Jun 5, 2024
1 parent df7cb6f commit 72d4e1e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ repos:
- id: check-useless-excludes
- repo: local
hooks:
- id: mypy
name: mypy
entry: tox -e mypy --
language: system
require_serial: true
exclude: (/conftest.py$|/test_.*\.py$)
types: [python]
- id: pylint
name: pylint
entry: tox -e pylint --
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ exclude_lines = [
known_first_party = "grizzly"
profile = "black"

[tool.mypy]
ignore_missing_imports = true
strict = true
show_error_codes = true

[tool.pylint.format]
max-line-length = 88

Expand Down
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ deps =
pre-commit
skip_install = true

[testenv:mypy]
commands =
mypy --install-types --non-interactive {posargs}
deps =
mypy==v1.10.0
usedevelop = true

[testenv:pylint]
commands =
pylint -j 0 {posargs}
Expand Down

0 comments on commit 72d4e1e

Please sign in to comment.