Skip to content

Commit 7d59cd6

Browse files
committed
Move mypy config to pyproject
1 parent ed39bc0 commit 7d59cd6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.pre-commit-config.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ repos:
2525
rev: v1.2.0
2626
hooks:
2727
- id: mypy
28-
args: ["--disallow-incomplete-defs", "--ignore-missing-imports"]
2928

3029
- repo: https://github.com/charliermarsh/ruff-pre-commit
3130
# Ruff version.

pyproject.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ profile = "black"
1414
line_length = 79
1515

1616
[tool.ruff]
17-
1817
target-version = "py38"
1918
select = ["I", "UP", "F", "E", "W"]
2019
fix = true
20+
21+
[tool.mypy]
22+
disallow_incomplete_defs = true
23+
ignore_missing_imports = true

0 commit comments

Comments
 (0)