Skip to content

Commit e35ece8

Browse files
[pre-commit.ci] pre-commit autoupdate (#2727)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 0646a05 commit e35ece8

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
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.4"
23+
rev: "2.1.1"
2424
hooks:
2525
- id: pyproject-fmt
2626
- repo: https://github.com/astral-sh/ruff-pre-commit

pyproject.toml

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -105,47 +105,46 @@ build.targets.sdist.include = [
105105
version.source = "vcs"
106106

107107
[tool.ruff]
108-
line-length = 120
109108
target-version = "py37"
109+
line-length = 120
110+
format.preview = true
111+
format.docstring-code-line-length = 100
112+
format.docstring-code-format = true
113+
lint.select = [
114+
"ALL",
115+
]
116+
lint.per-file-ignores."tests/**/*.py" = [
117+
"D", # don't care about documentation in tests
118+
"FBT", # don"t care about booleans as positional arguments in tests
119+
"INP001", # no implicit namespace
120+
"PLC2701", # Private import
121+
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
122+
"S101", # asserts allowed in tests...
123+
"S603", # `subprocess` call: check for execution of untrusted input
124+
]
110125
lint.isort = { known-first-party = [
111126
"virtualenv",
112127
], required-imports = [
113128
"from __future__ import annotations",
114129
] }
115-
lint.select = [
116-
"ALL",
117-
]
118130
lint.ignore = [
119-
"CPY", # No copyright header
120131
"ANN", # no type checking added yet
132+
"COM812", # conflict with formatter
133+
"CPY", # No copyright header
121134
"D10", # no docstrings
122135
"D40", # no imperative mode for docstrings
123-
"PTH", # no pathlib, <=39 has problems on Windows with absolute/resolve, can revisit once we no longer need 39
124-
"INP001", # ignore implicit namespace packages
125136
"D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
126137
"D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
127-
"S104", # Possible binding to all interfaces
128-
"S404", # Using subprocess is alright
138+
"INP001", # ignore implicit namespace packages
139+
"ISC001", # conflict with formatter
129140
"PLR0914", # Too many local variables
130141
"PLR0917", # Too many positional arguments
131142
"PLR6301", # Method could be a function, class method, or static method
132-
"COM812", # conflict with formatter
133-
"ISC001", # conflict with formatter
143+
"PTH", # no pathlib, <=39 has problems on Windows with absolute/resolve, can revisit once we no longer need 39
144+
"S104", # Possible binding to all interfaces
145+
"S404", # Using subprocess is alright
134146
]
135147
lint.preview = true
136-
format.preview = true
137-
format.docstring-code-format = true
138-
format.docstring-code-line-length = 100
139-
[tool.ruff.lint.per-file-ignores]
140-
"tests/**/*.py" = [
141-
"S101", # asserts allowed in tests...
142-
"FBT", # don"t care about booleans as positional arguments in tests
143-
"INP001", # no implicit namespace
144-
"D", # don't care about documentation in tests
145-
"S603", # `subprocess` call: check for execution of untrusted input
146-
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
147-
"PLC2701", # Private import
148-
]
149148

150149
[tool.codespell]
151150
builtin = "clear,usage,en-GB_to_en-US"

0 commit comments

Comments
 (0)