From fd8f92d0e706f4ec1d2a9815859e5e5189aaae18 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sun, 14 Jul 2019 18:07:04 +0300 Subject: [PATCH] Run mypy on src/ and testing/ together This makes testing/ actually pick up the pytest imports -- otherwise they are opaque and we don't actually test the types. A single run is also a bit faster and simpler. The original reason why we split it is no longer relevant (we fixed the problems). --- .pre-commit-config.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fce7978c4..2b0d6e49f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -47,12 +47,7 @@ repos: rev: v0.711 hooks: - id: mypy - name: mypy (src) - files: ^src/ - args: [] - - id: mypy - name: mypy (testing) - files: ^testing/ + files: ^(src/|testing/) args: [] - repo: local hooks: