From d1cedec14974f76724aeaf85779fc7c8911812e3 Mon Sep 17 00:00:00 2001 From: Jordan Cook Date: Wed, 8 Sep 2021 17:02:17 -0500 Subject: Re-enable mypy pre-commit hook with attrs as an explicit hook dependency for correct mypy-attrs behavior --- .pre-commit-config.yaml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to '.pre-commit-config.yaml') 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: -- cgit v1.2.1