Skip to content

Commit

Permalink
align pre-commit hook with pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleades committed Nov 15, 2021
1 parent ee4353f commit 0d5e28a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
11 changes: 1 addition & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,7 @@ repos:
rev: v0.910
hooks:
- id: mypy
additional_dependencies:
- types-requests
files: |
(?x)(
^poetry
)
exclude: |
(?x)(
^poetry/core/_vendor
)
pass_filenames: false

- repo: https://github.com/pycqa/isort
rev: 5.9.3
Expand Down
8 changes: 3 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,18 +87,16 @@ known_third_party = ["poetry.core._vendor"]

[tool.mypy]
python_version = "3.6"
check_untyped_defs = true
follow_imports = "silent"
ignore_missing_imports = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
files = "poetry"
exclude = "poetry/core/_vendor"

# The following whitelist is used to allow for incremental adoption
# of Mypy. Modules should be removed from this whitelist as and when
# their respective type errors have been addressed. No new modules
# should be added to this whitelist.
# see https://github.com/python-poetry/poetry/pull/4510.
# see https://github.com/python-poetry/poetry-core/pull/199.

[[tool.mypy.overrides]]
module = [
Expand Down

0 comments on commit 0d5e28a

Please sign in to comment.