Skip to content

Commit

Permalink
Use local environment for mypy pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Aug 21, 2021
1 parent d24fe27 commit 2052d0a
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ repos:
]
# disabled plugins: pylint.extensions.mccabe
exclude: tests/functional/|tests/input|tests/extensions/data|tests/regrtest_data/|tests/data/|doc/
- id: mypy
name: mypy
entry: mypy
language: system
types: [python]
args: []
require_serial: true
exclude: tests/functional/|tests/input|tests(/.*)*/data|tests/regrtest_data/|tests/data/|tests(/.*)+/conftest.py|doc/|bin/
- id: fix-documentation
name: Fix documentation
entry: python3 -m script.fix_documentation
Expand All @@ -74,18 +82,6 @@ repos:
args: ["--ignore-roles=func,class,mod", "--report=warning"]
types: [text] # necessary to include ChangeLog file
files: ^(ChangeLog|doc/(.*/)*.*\.rst)
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.910
hooks:
- id: mypy
name: mypy
entry: mypy
language: python
types: [python]
args: []
require_serial: true
additional_dependencies: ["types-pkg_resources==0.1.3", "types-toml==0.1.3"]
exclude: tests/functional/|tests/input|tests(/.*)*/data|tests/regrtest_data/|tests/data/|tests(/.*)+/conftest.py|doc/|bin/
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.3.2
hooks:
Expand Down

0 comments on commit 2052d0a

Please sign in to comment.