Skip to content

Commit 2cf190a

Browse files
[pre-commit.ci] pre-commit autoupdate (#3306)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 17435df commit 2cf190a

27 files changed

+39
-39
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
77
- repo: https://github.com/python-jsonschema/check-jsonschema
8-
rev: 0.28.6
8+
rev: 0.29.1
99
hooks:
1010
- id: check-github-workflows
1111
args: [ "--verbose" ]
@@ -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.4"
23+
rev: "2.2.1"
2424
hooks:
2525
- id: pyproject-fmt
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: "v0.5.0"
27+
rev: "v0.5.6"
2828
hooks:
2929
- id: ruff-format
3030
- id: ruff

src/tox/config/loader/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def __repr__(self) -> str:
112112
def __contains__(self, item: str) -> bool:
113113
return item in self.found_keys()
114114

115-
def load( # noqa: PLR0913
115+
def load(
116116
self,
117117
key: str,
118118
of_type: type[V],

src/tox/config/loader/ini/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
class IniLoader(StrConvert, Loader[str]):
2626
"""Load configuration from an ini section (ini file is a string to string dictionary)."""
2727

28-
def __init__( # noqa: PLR0913
28+
def __init__(
2929
self,
3030
section: Section,
3131
parser: ConfigParser,

src/tox/config/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
class Config:
2323
"""Main configuration object for tox."""
2424

25-
def __init__( # noqa: PLR0913
25+
def __init__(
2626
self,
2727
config_source: Source,
2828
options: Parsed,
@@ -123,7 +123,7 @@ def core(self) -> CoreConfigSet:
123123
self._core_set = core
124124
return core
125125

126-
def get_section_config( # noqa: PLR0913
126+
def get_section_config(
127127
self,
128128
section: Section,
129129
base: list[str] | None,

src/tox/execute/local_sub_process/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def interrupt(self) -> None: # noqa: PLR6301
153153

154154

155155
class LocalSubProcessExecuteInstance(ExecuteInstance):
156-
def __init__( # noqa: PLR0913
156+
def __init__(
157157
self,
158158
request: ExecuteRequest,
159159
options: ExecuteOptions,

src/tox/execute/pep517_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def close(self) -> None:
9898
class LocalSubProcessPep517ExecuteInstance(ExecuteInstance):
9999
"""A backend invocation."""
100100

101-
def __init__( # noqa: PLR0913
101+
def __init__(
102102
self,
103103
request: ExecuteRequest,
104104
options: ExecuteOptions,

src/tox/pytest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def interrupt(self) -> None: # noqa: PLR6301
194194
return None # pragma: no cover
195195

196196
class MockExecuteInstance(ExecuteInstance):
197-
def __init__( # noqa: PLR0913
197+
def __init__(
198198
self,
199199
request: ExecuteRequest,
200200
options: ExecuteOptions,
@@ -424,7 +424,7 @@ def _init(files: dict[str, Any], base: Path | None = None, prj_path: Path | None
424424
return _init
425425

426426

427-
@pytest.fixture()
427+
@pytest.fixture
428428
def empty_project(tox_project: ToxProjectCreator, monkeypatch: pytest.MonkeyPatch) -> ToxProject:
429429
project = tox_project({"tox.ini": ""})
430430
monkeypatch.chdir(project.path)

src/tox/tox_env/python/pip/req/file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def as_args(self) -> Iterator[str]:
111111

112112

113113
class ParsedLine:
114-
def __init__( # noqa: PLR0913
114+
def __init__(
115115
self,
116116
filename: str,
117117
lineno: int,

src/tox/tox_env/python/virtual_env/package/pyproject.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ def _send_msg(
447447
if self._tox_env.conf["fresh_subprocess"]:
448448
self.backend_executor.close()
449449

450-
def _unexpected_response( # noqa: PLR0913
450+
def _unexpected_response(
451451
self,
452452
cmd: str,
453453
got: Any,

src/tox/util/spinner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class Spinner:
5454
UNICODE_OUTCOME = Outcome(ok="✔", fail="✖", skip="⚠")
5555
ASCII_OUTCOME = Outcome(ok="+", fail="!", skip="?")
5656

57-
def __init__( # noqa: PLR0913
57+
def __init__(
5858
self,
5959
enabled: bool = True, # noqa: FBT001, FBT002
6060
refresh_rate: float = 0.1,

0 commit comments

Comments
 (0)