Skip to content

Commit 07ddca4

Browse files
committed
Move mypy from pre-commit to tox
1 parent 5f3515c commit 07ddca4

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

.github/workflows/lint.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ jobs:
2020
python-version: "3.x"
2121
cache: pip
2222
- uses: pre-commit/[email protected]
23+
24+
- name: Install dependencies
25+
run: |
26+
python3 -m pip install -U tox
27+
28+
- name: Mypy
29+
run: tox -e mypy

.pre-commit-config.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,6 @@ repos:
3636
hooks:
3737
- id: actionlint
3838

39-
- repo: https://github.com/pre-commit/mirrors-mypy
40-
rev: v1.11.2
41-
hooks:
42-
- id: mypy
43-
args: [--strict, --pretty, --show-error-codes, .]
44-
pass_filenames: false
45-
additional_dependencies: [.]
46-
4739
- repo: https://github.com/tox-dev/pyproject-fmt
4840
rev: 2.2.1
4941
hooks:

tox.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,9 @@ pass_env =
3636
PRE_COMMIT_COLOR
3737
commands =
3838
pre-commit run --all-files --show-diff-on-failure
39+
40+
[testenv:mypy]
41+
deps =
42+
mypy==1.11.2
43+
commands =
44+
mypy --strict --pretty --show-error-codes . {posargs}

0 commit comments

Comments
 (0)