Skip to content

Commit fc77f41

Browse files
committed
mypy pre-commit hook
1 parent dca3ccb commit fc77f41

File tree

4 files changed

+6
-40
lines changed

4 files changed

+6
-40
lines changed

.github/workflows/code_quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ defaults:
1919

2020
jobs:
2121
run_checks:
22-
name: Run linting and formatting
22+
name: Run linting, formatting and static type checker
2323
runs-on: ubuntu-latest
2424
steps:
2525
- uses: actions/checkout@v4

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ repos:
1919
hooks:
2020
- id: cmake-format
2121

22+
- repo: https://github.com/pre-commit/mirrors-mypy
23+
rev: v1.17.1
24+
hooks:
25+
- id: mypy
26+
2227
- repo: local
2328
hooks:
2429
- id: post-checkout-submodules

tests/stubs/mypy.ini

Lines changed: 0 additions & 14 deletions
This file was deleted.

tests/stubs/test_stubs.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)