Skip to content

Commit c723579

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

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ repos:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
77
- repo: https://github.com/python-jsonschema/check-jsonschema
8-
rev: 0.28.3
8+
rev: 0.28.4
99
hooks:
1010
- id: check-github-workflows
1111
args: [ "--verbose" ]
1212
- repo: https://github.com/codespell-project/codespell
13-
rev: v2.2.6
13+
rev: v2.3.0
1414
hooks:
1515
- id: codespell
1616
args: ["--write-changes"]
@@ -20,11 +20,11 @@ repos:
2020
- id: tox-ini-fmt
2121
args: ["-p", "fix"]
2222
- repo: https://github.com/tox-dev/pyproject-fmt
23-
rev: "2.1.1"
23+
rev: "2.1.3"
2424
hooks:
2525
- id: pyproject-fmt
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: "v0.4.4"
27+
rev: "v0.4.7"
2828
hooks:
2929
- id: ruff-format
3030
- id: ruff

pyproject.toml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -113,20 +113,6 @@ format.docstring-code-format = true
113113
lint.select = [
114114
"ALL",
115115
]
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-
]
125-
lint.isort = { known-first-party = [
126-
"virtualenv",
127-
], required-imports = [
128-
"from __future__ import annotations",
129-
] }
130116
lint.ignore = [
131117
"ANN", # no type checking added yet
132118
"COM812", # conflict with formatter
@@ -144,6 +130,20 @@ lint.ignore = [
144130
"S104", # Possible binding to all interfaces
145131
"S404", # Using subprocess is alright
146132
]
133+
lint.per-file-ignores."tests/**/*.py" = [
134+
"D", # don't care about documentation in tests
135+
"FBT", # don"t care about booleans as positional arguments in tests
136+
"INP001", # no implicit namespace
137+
"PLC2701", # Private import
138+
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
139+
"S101", # asserts allowed in tests...
140+
"S603", # `subprocess` call: check for execution of untrusted input
141+
]
142+
lint.isort = { known-first-party = [
143+
"virtualenv",
144+
], required-imports = [
145+
"from __future__ import annotations",
146+
] }
147147
lint.preview = true
148148

149149
[tool.codespell]

src/virtualenv/create/debug.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def encode_list_path(value):
1919
return [encode_path(i) for i in value]
2020

2121

22-
def run(): # noqa: PLR0912
22+
def run():
2323
"""Print debug data about the virtual environment."""
2424
try:
2525
from collections import OrderedDict # noqa: PLC0415

0 commit comments

Comments
 (0)