Skip to content

Commit 94892c5

Browse files
ci: Add mypy pre-commit hook (#113)
* add mypy pre-commit hook * remove redundant mypy run * fix mypy pre-commit hook
1 parent 66e3658 commit 94892c5

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/workflows/code-check.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,3 @@ jobs:
2626
uses: pre-commit/[email protected]
2727
with:
2828
extra_args: --all-files
29-
30-
- name: Type check with mypy
31-
run: |
32-
mypy src

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,13 @@ repos:
4545
additional_dependencies:
4646
- flake8-tidy-imports
4747
- flake8-quotes
48+
- repo: local
49+
hooks:
50+
- id: mypy
51+
name: mypy
52+
entry: mypy
53+
language: system
54+
types: [python]
55+
require_serial: true
56+
verbose: true
57+
pass_filenames: false

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ firebolt = py.typed
5757
plugins = pydantic.mypy
5858
disallow_untyped_defs = True
5959
show_error_codes = True
60+
files = src/
6061

6162
[pydantic-mypy]
6263
warn_required_dynamic_aliases = True

0 commit comments

Comments
 (0)