Skip to content

Commit

Permalink
Explicitly specify mypy config file in pre-commit-config.yaml (#156)
Browse files Browse the repository at this point in the history
I've found that without this `mypy` doesn't read the configuration when
pre-commit is run.

---------

Co-authored-by: Paddy Roddy <[email protected]>
  • Loading branch information
dstansby and paddyroddy authored Sep 26, 2023
1 parent a92f709 commit fd77470
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ repos:
rev: v1.4.1
hooks:
- id: mypy
args: [--config-file, pyproject.toml]
additional_dependencies: ["pytest"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.1
hooks:
Expand Down

0 comments on commit fd77470

Please sign in to comment.