Skip to content

Commit 63e7554

Browse files
[pre-commit.ci] pre-commit autoupdate (#168)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 21e6513 commit 63e7554

File tree

2 files changed

+20
-22
lines changed

2 files changed

+20
-22
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repos:
2020
- id: tox-ini-fmt
2121
args: ["-p", "fix"]
2222
- repo: https://github.com/tox-dev/pyproject-fmt
23-
rev: "2.0.3"
23+
rev: "2.1.1"
2424
hooks:
2525
- id: pyproject-fmt
2626
additional_dependencies: ["tox>=4.14.2"]

pyproject.toml

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,26 @@ version.source = "vcs"
6464
line-length = 120
6565

6666
[tool.ruff]
67-
line-length = 120
6867
target-version = "py38"
68+
line-length = 120
6969
lint.select = [
7070
"ALL",
7171
]
72+
lint.per-file-ignores."roots/**/*.py" = [
73+
"D", # no docs
74+
"INP001", # no namespace
75+
]
76+
lint.per-file-ignores."tests/**/*.py" = [
77+
"D", # don"t care about documentation in tests
78+
"FBT", # don"t care about booleans as positional arguments in tests
79+
"INP001", # no implicit namespace
80+
"PLC2701", # private import
81+
"PLR0913", # any number of arguments in tests
82+
"PLR0917", # any number of arguments in tests
83+
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
84+
"S101", # asserts allowed in tests...
85+
"S603", # `subprocess` call: check for execution of untrusted input
86+
]
7287
lint.isort = { known-first-party = [
7388
"sphinx_argparse_cli",
7489
], required-imports = [
@@ -77,29 +92,12 @@ lint.isort = { known-first-party = [
7792
lint.ignore = [
7893
"ANN101", # no type annotation for self
7994
"ANN401", # allow Any as type annotation
95+
"COM812", # Conflict with formatter
96+
"CPY", # No copyright statements
8097
"D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
8198
"D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
82-
"S104", # Possible binding to all interface
83-
"COM812", # Conflict with formatter
8499
"ISC001", # Conflict with formatter
85-
"CPY", # No copyright statements
86-
]
87-
[tool.ruff.lint.per-file-ignores]
88-
"tests/**/*.py" = [
89-
"S101", # asserts allowed in tests...
90-
"FBT", # don"t care about booleans as positional arguments in tests
91-
"INP001", # no implicit namespace
92-
"D", # don"t care about documentation in tests
93-
"S603", # `subprocess` call: check for execution of untrusted input
94-
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
95-
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
96-
"PLR0913", # any number of arguments in tests
97-
"PLR0917", # any number of arguments in tests
98-
"PLC2701", # private import
99-
]
100-
"roots/**/*.py" = [
101-
"INP001", # no namespace
102-
"D", # no docs
100+
"S104", # Possible binding to all interface
103101
]
104102

105103
[tool.codespell]

0 commit comments

Comments
 (0)