Skip to content

Commit 72bfcb2

Browse files
committed
Convince mypy to ignore the examples folder.
1 parent 3909ea5 commit 72bfcb2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
ruff check src/
2424
- name: Analysing the code with mypy
2525
run: |
26-
mypy --install-types --non-interactive $(git ls-files '*.py')
26+
mypy --install-types --non-interactive src/

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ repos:
2828
rev: 'v1.4.0'
2929
hooks:
3030
- id: mypy
31-
args: ['--install-types', '--non-interactive']
31+
args: ['--install-types', '--non-interactive', 'src/']
3232
additional_dependencies:
3333
- "Jinja2>=3.1.2"
3434
- "PyYAML>=6.0"

0 commit comments

Comments
 (0)