Skip to content

Commit 7f31b0e

Browse files
[pre-commit.ci] pre-commit autoupdate (#119)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 7f1ab8c commit 7f31b0e

2 files changed

Lines changed: 19 additions & 20 deletions

File tree

.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.13"]

pyproject.toml

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -68,39 +68,38 @@ version.source = "vcs"
6868
line-length = 120
6969

7070
[tool.ruff]
71-
line-length = 120
7271
target-version = "py38"
72+
line-length = 120
73+
format.preview = true
74+
format.docstring-code-line-length = 100
75+
format.docstring-code-format = true
76+
lint.select = [
77+
"ALL",
78+
]
79+
lint.per-file-ignores."tests/**/*.py" = [
80+
"D", # don"t care about documentation in tests
81+
"FBT", # don't care about booleans as positional arguments in tests
82+
"INP001", # no implicit namespace
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+
]
7387
lint.isort = { known-first-party = [
7488
"devpi_process",
7589
], required-imports = [
7690
"from __future__ import annotations",
7791
] }
78-
lint.select = [
79-
"ALL",
80-
]
8192
lint.ignore = [
8293
"ANN101", # no type annotation for self
8394
"ANN401", # allow Any as type annotation
95+
"COM812", # Conflict with formatter
96+
"CPY", # No copyright statements
8497
"D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
8598
"D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
86-
"S104", # Possible binding to all interface
87-
"COM812", # Conflict with formatter
8899
"ISC001", # Conflict with formatter
89-
"CPY", # No copyright statements
100+
"S104", # Possible binding to all interface
90101
]
91102
lint.preview = true
92-
format.preview = true
93-
format.docstring-code-format = true
94-
format.docstring-code-line-length = 100
95-
[tool.ruff.lint.per-file-ignores]
96-
"tests/**/*.py" = [
97-
"S101", # asserts allowed in tests...
98-
"FBT", # don't care about booleans as positional arguments in tests
99-
"INP001", # no implicit namespace
100-
"D", # don"t care about documentation in tests
101-
"S603", # `subprocess` call: check for execution of untrusted input
102-
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
103-
]
104103

105104
[tool.codespell]
106105
builtin = "clear,usage,en-GB_to_en-US"

0 commit comments

Comments
 (0)