Skip to content

Commit 6fd4b7b

Browse files
build(pre-commit): add mypy
1 parent 5f635cf commit 6fd4b7b

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/lint.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,5 @@ jobs:
1717
- name: Install dependencies
1818
run: uv sync --extra lint
1919

20-
- name: Type check
21-
run: uv run mypy .
22-
2320
- name: Run pre-commit
2421
run: uv run pre-commit run --all-files

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,8 @@ repos:
2121
- id: ruff
2222
args: [--fix]
2323
- id: ruff-format
24+
25+
- repo: https://github.com/pre-commit/mirrors-mypy
26+
rev: v1.19.1
27+
hooks:
28+
- id: mypy

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ select = [
6161
"C4", # flake8-comprehensions
6262
"UP", # pyupgrade
6363
"ARG001", # unused arguments in functions
64-
"T201", # no print statements
6564
]
6665
ignore = [
6766
"E501", # line too long (handled by ruff)

0 commit comments

Comments
 (0)