Skip to content

Commit c414bfb

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

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@ repos:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
77
- repo: https://github.com/astral-sh/ruff-pre-commit
8-
rev: "v0.0.272"
8+
rev: "v0.0.278"
99
hooks:
1010
- id: ruff
1111
args: [--fix, --exit-non-zero-on-fix]
1212
- repo: https://github.com/psf/black
13-
rev: 23.3.0
13+
rev: 23.7.0
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.13.0"
2323
hooks:
2424
- id: pyproject-fmt
2525
additional_dependencies: ["tox>=4.6"]
2626
- repo: https://github.com/pre-commit/mirrors-prettier
27-
rev: "v3.0.0-alpha.9-for-vscode"
27+
rev: "v3.0.0"
2828
hooks:
2929
- id: prettier
3030
args: ["--print-width=120", "--prose-wrap=always"]

pyproject.toml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,28 @@ version.source = "vcs"
5555
[tool.black]
5656
line-length = 120
5757

58+
[tool.ruff]
59+
select = ["ALL"]
60+
line-length = 120
61+
target-version = "py37"
62+
isort = {known-first-party = ["pytest_env"], required-imports = ["from __future__ import annotations"]}
63+
ignore = [
64+
"ANN101", # no typoe annotation for self
65+
"ANN401", # allow Any as type annotation
66+
"D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
67+
"D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
68+
"S104", # Possible binding to all interface
69+
]
70+
[tool.ruff.per-file-ignores]
71+
"tests/**/*.py" = [
72+
"S101", # asserts allowed in tests...
73+
"FBT", # don"t care about booleans as positional arguments in tests
74+
"INP001", # no implicit namespace
75+
"D", # don"t care about documentation in tests
76+
"S603", # `subprocess` call: check for execution of untrusted input
77+
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
78+
]
79+
5880
[tool.isort]
5981
profile = "black"
6082
known_first_party = ["pytest_env"]
@@ -81,25 +103,3 @@ paths.source = [
81103
python_version = "3.10"
82104
show_error_codes = true
83105
strict = true
84-
85-
[tool.ruff]
86-
select = ["ALL"]
87-
line-length = 120
88-
target-version = "py37"
89-
isort = {known-first-party = ["pytest_env"], required-imports = ["from __future__ import annotations"]}
90-
ignore = [
91-
"ANN101", # no typoe annotation for self
92-
"ANN401", # allow Any as type annotation
93-
"D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
94-
"D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
95-
"S104", # Possible binding to all interface
96-
]
97-
[tool.ruff.per-file-ignores]
98-
"tests/**/*.py" = [
99-
"S101", # asserts allowed in tests...
100-
"FBT", # don"t care about booleans as positional arguments in tests
101-
"INP001", # no implicit namespace
102-
"D", # don"t care about documentation in tests
103-
"S603", # `subprocess` call: check for execution of untrusted input
104-
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
105-
]

0 commit comments

Comments
 (0)