Skip to content
This repository was archived by the owner on Oct 17, 2024. It is now read-only.

Commit 4c9dba0

Browse files
[pre-commit.ci] pre-commit autoupdate (#22)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 14ade7f commit 4c9dba0

File tree

2 files changed

+20
-21
lines changed

2 files changed

+20
-21
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
- repo: https://github.com/astral-sh/ruff-pre-commit

pyproject.toml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,31 @@ skip = [
6060
]
6161

6262
[tool.ruff]
63-
line-length = 120
6463
target-version = "py38"
64+
line-length = 120
65+
format.preview = true
66+
format.docstring-code-line-length = 100
67+
68+
format.docstring-code-format = true
69+
lint.select = [
70+
"ALL",
71+
]
72+
lint.per-file-ignores."tests/**/*.py" = [
73+
"D", # don"t care about documentation in tests
74+
"FBT", # don"t care about booleans as positional arguments in tests
75+
"INP001", # no implicit namespace
76+
"PLC2701", # private import
77+
"PLR0913", # any number of arguments in tests
78+
"PLR0917", # any number of arguments in tests
79+
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
80+
"S101", # asserts allowed in tests...
81+
"S603", # `subprocess` call: check for execution of untrusted input
82+
]
6583
lint.isort = { known-first-party = [
6684
"pyproject_fmt_rust",
6785
], required-imports = [
6886
"from __future__ import annotations",
6987
] }
70-
lint.select = [
71-
"ALL",
72-
]
7388
lint.ignore = [
7489
"ANN101", # no type annotation for self
7590
"ANN401", # allow Any as type annotation
@@ -81,22 +96,6 @@ lint.ignore = [
8196
"S104", # Possible binding to all interface
8297
]
8398
lint.preview = true
84-
format.preview = true
85-
format.docstring-code-format = true
86-
format.docstring-code-line-length = 100
87-
88-
[tool.ruff.lint.per-file-ignores]
89-
"tests/**/*.py" = [
90-
"D", # don"t care about documentation in tests
91-
"FBT", # don"t care about booleans as positional arguments in tests
92-
"INP001", # no implicit namespace
93-
"PLC2701", # private import
94-
"PLR0913", # any number of arguments in tests
95-
"PLR0917", # any number of arguments in tests
96-
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
97-
"S101", # asserts allowed in tests...
98-
"S603", # `subprocess` call: check for execution of untrusted input
99-
]
10099

101100
[tool.codespell]
102101
builtin = "clear,usage,en-GB_to_en-US"

0 commit comments

Comments
 (0)