Skip to content

Commit

Permalink
test(FCL-343): add mypy configuration to pre-commit
Browse files Browse the repository at this point in the history
mypy will now run typing checks as part of pre-commit, forcing us to write code which fully expresses its typing
  • Loading branch information
jacksonj04 committed Sep 26, 2024
1 parent 988e67a commit b52d4aa
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,25 @@ repos:
hooks:
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
hooks:
- id: mypy
name: mypy-src
additional_dependencies:
- types-PyYAML
args:
- --strict
files: ^(src/ds_caselaw_utils|scripts)
exclude: test_

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
hooks:
- id: mypy
name: mypy-tests
files: ^src/ds_caselaw_utils/test_

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.2
hooks:
Expand Down

0 comments on commit b52d4aa

Please sign in to comment.