pre-commit: replace `debug-statements` hook with ruff
Ruff supports this functionality so we can use it.
This commit is contained in:
parent
85bc9ca954
commit
e847b2a5a9
|
@ -11,9 +11,6 @@ repos:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: debug-statements
|
|
||||||
exclude: _pytest/(debugging|hookspec).py
|
|
||||||
language_version: python3
|
|
||||||
- repo: https://github.com/adamchainz/blacken-docs
|
- repo: https://github.com/adamchainz/blacken-docs
|
||||||
rev: 1.16.0
|
rev: 1.16.0
|
||||||
hooks:
|
hooks:
|
||||||
|
|
|
@ -107,6 +107,7 @@ select = [
|
||||||
"PLE", # pylint error
|
"PLE", # pylint error
|
||||||
"PLW", # pylint warning
|
"PLW", # pylint warning
|
||||||
"PLR1714", # Consider merging multiple comparisons
|
"PLR1714", # Consider merging multiple comparisons
|
||||||
|
"T100", # flake8-debugger
|
||||||
]
|
]
|
||||||
ignore = [
|
ignore = [
|
||||||
# bugbear ignore
|
# bugbear ignore
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# mypy: allow-untyped-defs
|
# mypy: allow-untyped-defs
|
||||||
|
# ruff: noqa: T100
|
||||||
"""Interactive debugging with PDB, the Python Debugger."""
|
"""Interactive debugging with PDB, the Python Debugger."""
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# mypy: allow-untyped-defs
|
# mypy: allow-untyped-defs
|
||||||
|
# ruff: noqa: T100
|
||||||
"""Hook specifications for pytest plugins which are invoked by pytest itself
|
"""Hook specifications for pytest plugins which are invoked by pytest itself
|
||||||
and by builtin plugins."""
|
and by builtin plugins."""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue