Skip to content

Commit 2e1dfb0

Browse files
authored
Merge pull request #12265 from bluetech/pre-commit-tweaks
pre-commit tweaks
2 parents ebc4540 + 940b782 commit 2e1dfb0

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,7 @@ repos:
1010
hooks:
1111
- id: trailing-whitespace
1212
- id: end-of-file-fixer
13-
- id: fix-encoding-pragma
14-
args: [--remove]
1513
- id: check-yaml
16-
- id: debug-statements
17-
exclude: _pytest/(debugging|hookspec).py
18-
language_version: python3
1914
- repo: https://github.com/adamchainz/blacken-docs
2015
rev: 1.16.0
2116
hooks:
@@ -50,13 +45,13 @@ repos:
5045
additional_dependencies: ["tox>=4.9"]
5146
- repo: local
5247
hooks:
53-
- id: pylint
54-
name: pylint
55-
entry: pylint
56-
language: system
57-
types: [python]
58-
args: ["-rn", "-sn", "--fail-on=I"]
59-
stages: [manual]
48+
- id: pylint
49+
name: pylint
50+
entry: pylint
51+
language: system
52+
types: [python]
53+
args: ["-rn", "-sn", "--fail-on=I"]
54+
stages: [manual]
6055
- id: rst
6156
name: rst
6257
entry: rst-lint --encoding utf-8

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ select = [
107107
"PLE", # pylint error
108108
"PLW", # pylint warning
109109
"PLR1714", # Consider merging multiple comparisons
110+
"T100", # flake8-debugger
110111
]
111112
ignore = [
112113
# bugbear ignore

src/_pytest/debugging.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# mypy: allow-untyped-defs
2+
# ruff: noqa: T100
23
"""Interactive debugging with PDB, the Python Debugger."""
34

45
import argparse

src/_pytest/hookspec.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# mypy: allow-untyped-defs
2+
# ruff: noqa: T100
23
"""Hook specifications for pytest plugins which are invoked by pytest itself
34
and by builtin plugins."""
45

0 commit comments

Comments
 (0)