Skip to content

Commit 75d93b8

Browse files
committed
remove mypy args from .pre-commit
1 parent 610842f commit 75d93b8

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

.pre-commit-config.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
11
default_language_version:
2-
python: python3
2+
python: python3
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
66
rev: "v4.6.0"
77
hooks:
8-
- id: check-merge-conflict
9-
- id: debug-statements
10-
- id: trailing-whitespace
11-
args: [--markdown-linebreak-ext=md] # Do not process Markdown files.
12-
- id: end-of-file-fixer
13-
- id: check-ast
14-
- id: check-builtin-literals
15-
- id: check-docstring-first
16-
- id: check-toml
8+
- id: check-merge-conflict
9+
- id: debug-statements
10+
- id: trailing-whitespace
11+
args: [--markdown-linebreak-ext=md] # Do not process Markdown files.
12+
- id: end-of-file-fixer
13+
- id: check-ast
14+
- id: check-builtin-literals
15+
- id: check-docstring-first
16+
- id: check-toml
1717

1818
- repo: https://github.com/PyCQA/flake8
1919
rev: "7.0.0"
2020
hooks:
2121
- id: flake8
22-
additional_dependencies: [
23-
"git+https://github.com/RedHatQE/flake8-plugins.git",
24-
"flake8-mutable",
25-
]
22+
additional_dependencies:
23+
[
24+
"git+https://github.com/RedHatQE/flake8-plugins.git",
25+
"flake8-mutable",
26+
]
2627

2728
- repo: https://github.com/Yelp/detect-secrets
2829
rev: v1.4.0
@@ -41,4 +42,3 @@ repos:
4142
- id: mypy
4243
exclude: ^(tests/)
4344
additional_dependencies: [types-all]
44-
args: [--ignore-missing-imports, --disallow-untyped-defs]

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ directory = ".tests_coverage"
1010
show_contexts = true
1111

1212
[tool.mypy]
13+
show_error_codes = true
14+
warn_unused_ignores = true
1315
check_untyped_defs = true
1416
disallow_any_generics = true
1517
disallow_incomplete_defs = true

0 commit comments

Comments
 (0)