Skip to content

Commit

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

updates:
- [github.com/pre-commit/mirrors-mypy: v1.11.1 → v1.11.2](pre-commit/mirrors-mypy@v1.11.1...v1.11.2)
- [github.com/RobertCraigie/pyright-python: v1.1.375 → v1.1.377](RobertCraigie/pyright-python@v1.1.375...v1.1.377)
- [github.com/astral-sh/ruff-pre-commit: v0.5.7 → v0.6.2](astral-sh/ruff-pre-commit@v0.5.7...v0.6.2)

* add --fix to ruff, move it earlier, fix ruff warning

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: jakkdl <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and jakkdl authored Aug 31, 2024
1 parent 225f15a commit 5338432
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
15 changes: 8 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ ci:
skip: [pyright]

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.2
hooks:
- id: ruff
args: [--fix]

- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
Expand All @@ -31,12 +37,12 @@ repos:
- id: isort

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1
rev: v1.11.2
hooks:
- id: mypy

- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.375
rev: v1.1.377
hooks:
- id: pyright
# ignore warnings about new version being available, no other warnings
Expand Down Expand Up @@ -77,11 +83,6 @@ repos:
- id: trailing-whitespace
args: ['--markdown-linebreak-ext=md,markdown']

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
hooks:
- id: ruff

- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.3
hooks:
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ def pytest_collection_modifyitems(config: pytest.Config, items: list[pytest.Item
item.add_marker(skip_fuzz)


@pytest.fixture()
@pytest.fixture
def generate_autofix(request: pytest.FixtureRequest):
return request.config.getoption("generate_autofix")


@pytest.fixture()
@pytest.fixture
def enable_codes(request: pytest.FixtureRequest):
return request.config.getoption("--enable-codes")
6 changes: 3 additions & 3 deletions tests/test_flake8_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ def test_line_numbers_match_end_result():
assert errors[1].line != plugin.module.code.split("\n").index("trio.sleep(0)") + 1


@pytest.mark.fuzz()
@pytest.mark.fuzz
def test_910_permutations():
"""Tests all possible permutations for ASYNC910.
Expand Down Expand Up @@ -814,7 +814,7 @@ def consume(iterator: Iterable[Any]):
deque(iterator, maxlen=0)


@pytest.mark.fuzz()
@pytest.mark.fuzz
class TestFuzz(unittest.TestCase):
@settings(
max_examples=1_000, deadline=None, suppress_health_check=[HealthCheck.too_slow]
Expand Down Expand Up @@ -847,7 +847,7 @@ def _iter_python_files():
yield Path(dirname) / f


@pytest.mark.fuzz()
@pytest.mark.fuzz
def test_does_not_crash_on_site_code(enable_codes: str):
for path in _iter_python_files():
try:
Expand Down

0 comments on commit 5338432

Please sign in to comment.