Skip to content

Commit 751e5b2

Browse files
[pre-commit.ci] pre-commit autoupdate (#362)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent dd32c5c commit 751e5b2

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ repos:
1414
hooks:
1515
- id: black
1616
- repo: https://github.com/tox-dev/tox-ini-fmt
17-
rev: "1.3.0"
17+
rev: "1.3.1"
1818
hooks:
1919
- id: tox-ini-fmt
2020
args: ["-p", "fix"]
2121
- repo: https://github.com/tox-dev/pyproject-fmt
22-
rev: "0.11.2"
22+
rev: "0.12.0"
2323
hooks:
2424
- id: pyproject-fmt
2525
additional_dependencies: ["tox>=4.6"]

pyproject.toml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,28 @@ version.source = "vcs"
7171
[tool.black]
7272
line-length = 120
7373

74+
[tool.ruff]
75+
select = ["ALL"]
76+
line-length = 120
77+
target-version = "py37"
78+
isort = {known-first-party = ["tox", "tests"], required-imports = ["from __future__ import annotations"]}
79+
ignore = [
80+
"ANN101", # no typoe annotation for self
81+
"ANN401", # allow Any as type annotation
82+
"D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
83+
"D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
84+
"S104", # Possible binding to all interface
85+
]
86+
[tool.ruff.per-file-ignores]
87+
"tests/**/*.py" = [
88+
"S101", # asserts allowed in tests...
89+
"FBT", # don"t care about booleans as positional arguments in tests
90+
"INP001", # no implicit namespace
91+
"D", # don"t care about documentation in tests
92+
"S603", # `subprocess` call: check for execution of untrusted input
93+
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
94+
]
95+
7496
[tool.pytest.ini_options]
7597
testpaths = ["tests"]
7698

@@ -95,25 +117,3 @@ python_version = "3.10"
95117
strict = true
96118
exclude = "^(.*/roots/.*)|(tests/test_integration.py)$"
97119
overrides = [{ module = ["sphobjinv.*"], ignore_missing_imports = true }]
98-
99-
[tool.ruff]
100-
select = ["ALL"]
101-
line-length = 120
102-
target-version = "py37"
103-
isort = {known-first-party = ["tox", "tests"], required-imports = ["from __future__ import annotations"]}
104-
ignore = [
105-
"ANN101", # no typoe annotation for self
106-
"ANN401", # allow Any as type annotation
107-
"D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
108-
"D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
109-
"S104", # Possible binding to all interface
110-
]
111-
[tool.ruff.per-file-ignores]
112-
"tests/**/*.py" = [
113-
"S101", # asserts allowed in tests...
114-
"FBT", # don"t care about booleans as positional arguments in tests
115-
"INP001", # no implicit namespace
116-
"D", # don"t care about documentation in tests
117-
"S603", # `subprocess` call: check for execution of untrusted input
118-
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
119-
]

0 commit comments

Comments
 (0)