Skip to content

Commit 1cdb3b4

Browse files
[pre-commit.ci] pre-commit autoupdate (#328)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 19f78fc commit 1cdb3b4

File tree

2 files changed

+22
-23
lines changed

2 files changed

+22
-23
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
- id: tox-ini-fmt
1616
args: ["-p", "fix"]
1717
- repo: https://github.com/tox-dev/pyproject-fmt
18-
rev: "2.0.3"
18+
rev: "2.1.1"
1919
hooks:
2020
- id: pyproject-fmt
2121
additional_dependencies: ["tox>=4.12.1"]

pyproject.toml

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -72,41 +72,40 @@ build.targets.sdist.include = [
7272
version.source = "vcs"
7373

7474
[tool.ruff]
75-
line-length = 120
7675
target-version = "py38"
76+
line-length = 120
77+
format.preview = true
78+
format.docstring-code-line-length = 100
79+
format.docstring-code-format = true
80+
lint.select = [
81+
"ALL",
82+
]
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+
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
88+
"S101", # asserts allowed in tests...
89+
"S603", # `subprocess` call: check for execution of untrusted input
90+
]
7791
lint.isort = { known-first-party = [
7892
"filelock",
7993
], required-imports = [
8094
"from __future__ import annotations",
8195
] }
82-
lint.select = [
83-
"ALL",
84-
]
8596
lint.ignore = [
8697
"ANN101", # Missing type annotation for `self` in method
87-
"D301", # Use `r"""` if any backslashes in a docstring
88-
"D205", # 1 blank line required between summary line and description
89-
"D401", # First line of docstring should be in imperative mood
98+
"COM812", # Conflict with formatter
99+
"CPY", # No copyright statements
90100
"D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
101+
"D205", # 1 blank line required between summary line and description
91102
"D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
92-
"S104", # Possible binding to all interface
93-
"COM812", # Conflict with formatter
103+
"D301", # Use `r"""` if any backslashes in a docstring
104+
"D401", # First line of docstring should be in imperative mood
94105
"ISC001", # Conflict with formatter
95-
"CPY", # No copyright statements
106+
"S104", # Possible binding to all interface
96107
]
97108
lint.preview = true
98-
format.preview = true
99-
format.docstring-code-format = true
100-
format.docstring-code-line-length = 100
101-
[tool.ruff.lint.per-file-ignores]
102-
"tests/**/*.py" = [
103-
"S101", # asserts allowed in tests...
104-
"FBT", # don"t care about booleans as positional arguments in tests
105-
"INP001", # no implicit namespace
106-
"D", # don"t care about documentation in tests
107-
"S603", # `subprocess` call: check for execution of untrusted input
108-
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
109-
]
110109

111110
[tool.codespell]
112111
builtin = "clear,usage,en-GB_to_en-US"

0 commit comments

Comments
 (0)