summaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook@pioneer.com>2021-09-08 17:02:17 -0500
committerJordan Cook <jordan.cook@pioneer.com>2021-09-08 17:25:34 -0500
commitd1cedec14974f76724aeaf85779fc7c8911812e3 (patch)
tree2c9ae989dd61c0af36fc6173f3c7830c3de0c04c /.pre-commit-config.yaml
parentef6d9013e34712973af73e58a97ef9eb60a904bd (diff)
downloadrequests-cache-d1cedec14974f76724aeaf85779fc7c8911812e3.tar.gz
Re-enable mypy pre-commit hook with attrs as an explicit hook dependency for correct mypy-attrs behavior
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml13
1 files changed, 6 insertions, 7 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 8536c56..29ff89d 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -25,13 +25,12 @@ repos:
hooks:
- id: flake8
additional_dependencies: [flake8-comprehensions]
- # TODO: This is currently failing for attrs classes in CI, but passes locally. Mypy run without pre-commit also passes.
- # - repo: https://github.com/pre-commit/mirrors-mypy
- # rev: v0.910
- # hooks:
- # - id: mypy
- # files: requests_cache
- # additional_dependencies: [types-itsdangerous, types-requests, types-pyyaml, types-redis, types-ujson]
+ - repo: https://github.com/pre-commit/mirrors-mypy
+ rev: v0.910
+ hooks:
+ - id: mypy
+ files: requests_cache
+ additional_dependencies: [attrs, types-itsdangerous, types-requests, types-pyyaml, types-redis, types-ujson]
- repo: https://github.com/yunojuno/pre-commit-xenon
rev: v0.1
hooks: