Skip to content

Commit 3feb267

Browse files
committed
speed up mypy
1 parent 94428e8 commit 3feb267

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
uses: actions/cache@v4
5454
with:
5555
path: .mypy_cache
56-
key: mypy-${{ runner.os }}-${{ env.python-version }}-${{ hashFiles('src/**/*.py') }}
56+
key: mypy-${{ runner.os }}-${{ env.python-version }}-${{ hashFiles('**/*.py') }}
5757
restore-keys: mypy-${{ runner.os }}-${{ env.python-version }}-
5858

5959
- run: make ${{ matrix.task }}

mypy.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
check_untyped_defs = True
33
disallow_untyped_defs = False
44
ignore_missing_imports = True
5+
incremental = True
6+
cache_dir = .mypy_cache
7+
exclude = cdk.out/
58

69
[mypy-src.*]
710
disallow_untyped_defs = True

0 commit comments

Comments
 (0)