Skip to content

Commit 104b9a3

Browse files
[pre-commit.ci] pre-commit autoupdate (#455)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 22883fb commit 104b9a3

File tree

2 files changed

+19
-20
lines changed

2 files changed

+19
-20
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: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,25 @@ version.source = "vcs"
7272
line-length = 120
7373

7474
[tool.ruff]
75-
line-length = 120
7675
target-version = "py39"
76+
line-length = 120
77+
format.preview = true
78+
format.docstring-code-line-length = 100
79+
format.docstring-code-format = true
7780
lint.select = [
7881
"ALL",
7982
]
83+
lint.per-file-ignores."tests/**/*.py" = [
84+
"D", # don't care about documentation in tests
85+
"FBT", # don"t care about booleans as positional arguments in tests
86+
"INP001", # no implicit namespace
87+
"PLC2701", # private imports
88+
"PLR0913", # any number of arguments in tests
89+
"PLR0917", # any number of arguments in tests
90+
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
91+
"S101", # asserts allowed in tests...
92+
"S603", # `subprocess` call: check for execution of untrusted input
93+
]
8094
lint.isort = { known-first-party = [
8195
"sphinx_autodoc_typehints",
8296
"tests",
@@ -86,29 +100,14 @@ lint.isort = { known-first-party = [
86100
lint.ignore = [
87101
"ANN101", # no type annotation for self
88102
"ANN401", # allow Any as type annotation
103+
"COM812", # Conflict with formatter
104+
"CPY", # No copyright statements
89105
"D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
90106
"D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
91-
"S104", # Possible binding to all interface
92-
"COM812", # Conflict with formatter
93107
"ISC001", # Conflict with formatter
94-
"CPY", # No copyright statements
108+
"S104", # Possible binding to all interface
95109
]
96110
lint.preview = true
97-
format.preview = true
98-
format.docstring-code-format = true
99-
format.docstring-code-line-length = 100
100-
[tool.ruff.lint.per-file-ignores]
101-
"tests/**/*.py" = [
102-
"S101", # asserts allowed in tests...
103-
"FBT", # don"t care about booleans as positional arguments in tests
104-
"INP001", # no implicit namespace
105-
"D", # don't care about documentation in tests
106-
"S603", # `subprocess` call: check for execution of untrusted input
107-
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
108-
"PLR0913", # any number of arguments in tests
109-
"PLR0917", # any number of arguments in tests
110-
"PLC2701", # private imports
111-
]
112111

113112
[tool.codespell]
114113
builtin = "clear,usage,en-GB_to_en-US"

0 commit comments

Comments
 (0)