Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#1978)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.7 → v0.6.1](astral-sh/ruff-pre-commit@v0.5.7...v0.6.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* chore: ruff python-version not needed

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
  • Loading branch information
pre-commit-ci[bot] and henryiii committed Aug 21, 2024
1 parent 126b819 commit 3a30bec
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
rev: v0.6.1
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,8 @@ messages_control.disable = [
]

[tool.ruff]
target-version = "py38"
line-length = 100


[tool.ruff.lint]
extend-select = [
"B", # flake8-bugbear
Expand Down
4 changes: 2 additions & 2 deletions test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def build_frontend_env_nouv(request: pytest.FixtureRequest) -> dict[str, str]:
return {"CIBW_BUILD_FRONTEND": frontend}


@pytest.fixture()
@pytest.fixture
def build_frontend_env(build_frontend_env_nouv: dict[str, str]) -> dict[str, str]:
frontend = build_frontend_env_nouv["CIBW_BUILD_FRONTEND"]
if frontend != "build" or platform == "pyodide" or find_uv() is None:
Expand All @@ -46,7 +46,7 @@ def build_frontend_env(build_frontend_env_nouv: dict[str, str]) -> dict[str, str
return {"CIBW_BUILD_FRONTEND": "build[uv]"}


@pytest.fixture()
@pytest.fixture
def docker_cleanup() -> Generator[None, None, None]:
def get_images() -> set[str]:
if detect_ci_provider() is None or platform != "linux":
Expand Down
2 changes: 1 addition & 1 deletion unit_test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def pytest_addoption(parser):
)


@pytest.fixture()
@pytest.fixture
def fake_package_dir(tmp_path, monkeypatch):
"""
Monkey-patch enough for the main() function to run
Expand Down
4 changes: 2 additions & 2 deletions unit_test/main_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def empty_cm(*args, **kwargs):
monkeypatch.setattr(util, "print_new_wheels", empty_cm)


@pytest.fixture()
@pytest.fixture
def allow_empty(monkeypatch, fake_package_dir):
monkeypatch.setattr(sys, "argv", [*fake_package_dir, "--allow-empty"])

Expand All @@ -81,7 +81,7 @@ def platform(request, monkeypatch):
return platform_value


@pytest.fixture()
@pytest.fixture
def intercepted_build_args(monkeypatch):
intercepted = ArgsInterceptor()

Expand Down
2 changes: 1 addition & 1 deletion unit_test/option_prepare_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
}


@pytest.fixture()
@pytest.fixture
def mock_build_container(monkeypatch):
def fail_on_call(*args, **kwargs):
msg = "This should never be called"
Expand Down

0 comments on commit 3a30bec

Please sign in to comment.