8000 [pre-commit.ci] pre-commit autoupdate (#281) · python-trio/flake8-async@5338432 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5338432

Browse files
[pre-commit.ci] pre-commit autoupdate (#281)
* [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 <h6+github@pm.me>
1 parent 225f15a commit 5338432

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ ci:
77
skip: [pyright]
88

99
repos:
10+
- repo: https://github.com/astral-sh/ruff-pre-commit
11+
rev: v0.6.2
12+
hooks:
13+
- id: ruff
14+
args: [--fix]
15+
1016
- repo: https://github.com/psf/black
1117
rev: 24.8.0
1218
hooks:
@@ -31,12 +37,12 @@ repos:
3137
- id: isort
3238

3339
- repo: https://github.com/pre-commit/mirrors-mypy
34-
rev: v1.11.1
40+
rev: v1.11.2
3541
hooks:
3642
- id: mypy
3743

3844
- repo: https://github.com/RobertCraigie/pyright-python
39-
rev: v1.1.375
45+
rev: v1.1.377
4046
hooks:
4147
- id: pyright
4248
# ignore warnings about new version being available, no other warnings
@@ -77,11 +83,6 @@ repos:
7783
- id: trailing-whitespace
7884
args: ['--markdown-linebreak-ext=md,markdown']
7985

80-
- repo: https://github.com/astral-sh/ruff-pre-commit
81-
rev: v0.5.7
82-
hooks:
83-
- id: ruff
84-
8586
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
8687
rev: 0.2.3
8788
hooks:

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ def pytest_collection_modifyitems(config: pytest.Config, items: list[pytest.Item
4848
item.add_marker(skip_fuzz)
4949

5050

51-
@pytest.fixture()
51+
@pytest.fixture
5252
def generate_autofix(request: pytest.FixtureRequest):
5353
return request.config.getoption("generate_autofix")
5454

5555

56-
@pytest.fixture()
56+
@pytest.fixture
5757
def enable_codes(request: pytest.FixtureRequest):
5858
return request.config.getoption("--enable-codes")

tests/test_flake8_async.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ def test_line_numbers_match_end_result():
728728
assert errors[1].line != plugin.module.code.split("\n").index("trio.sleep(0)") + 1
729729

730730

731-
@pytest.mark.fuzz()
731+
@pytest.mark.fuzz
732732
def test_910_permutations():
733733
"""Tests all possible permutations for ASYNC910.
734734
@@ -814,7 +814,7 @@ def consume(iterator: Iterable[Any]):
814814
deque(iterator, maxlen=0)
815815

816816

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

849849

850-
@pytest.mark.fuzz()
850+
@pytest.mark.fuzz
851851
def test_does_not_crash_on_site_code(enable_codes: str):
852852
for path in _iter_python_files():
853853
try:

0 commit comments

Comments
 (0)
0