Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
hashFiles('pyproject.toml', 'requirements/**.txt') }}" >> $GITHUB_OUTPUT
- name: Restore Python virtual environment
id: cache-venv
uses: actions/cache@v4.0.2
uses: actions/cache@v4.1.0
with:
path: .venv
key: >-
Expand All @@ -55,7 +55,7 @@ jobs:
hashFiles('.pre-commit-config.yaml') }}" >> $GITHUB_OUTPUT
- name: Restore pre-commit environment
id: cache-precommit
uses: actions/cache@v4.0.2
uses: actions/cache@v4.1.0
with:
path: ${{ env.PRE_COMMIT_CACHE }}
key: >-
Expand All @@ -80,14 +80,14 @@ jobs:
check-latest: true
- name: Restore Python virtual environment
id: cache-venv
uses: actions/cache@v4.0.2
uses: actions/cache@v4.1.0
with:
path: .venv
fail-on-cache-miss: true
key: ${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{ needs.prepare-base.outputs.python-key }}
- name: Restore pre-commit environment
id: cache-precommit
uses: actions/cache@v4.0.2
uses: actions/cache@v4.1.0
with:
path: ${{ env.PRE_COMMIT_CACHE }}
fail-on-cache-miss: true
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v6.0.0
hooks:
- id: end-of-file-fixer
exclude: ^.idea/
Expand Down Expand Up @@ -35,18 +35,18 @@ repos:
- --offset
- '2'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.8
rev: v0.14.1
hooks:
- id: ruff
args:
- --fix
exclude: tests/input/
- repo: https://github.com/psf/black
rev: 24.8.0
rev: 25.9.0
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: 1.18.0
rev: 1.20.0
hooks:
- id: blacken-docs
additional_dependencies:
Expand Down Expand Up @@ -74,7 +74,7 @@ repos:
language: pygrep
types: [python]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
rev: v1.18.2
hooks:
- id: mypy
exclude: tests/input/
Expand Down
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ from fixture_collections import (
) # <- Unused imported_fixture imported from fixture_collections


def test_something(imported_fixture):
...
def test_something(imported_fixture): ...
```

### `redefined-outer-name`
Expand Down Expand Up @@ -130,16 +129,14 @@ import pytest


@pytest.fixture
def awesome_fixture():
...
def awesome_fixture(): ...


@pytest.fixture
@pytest.mark.usefixtures(
"awesome_fixture"
) # <- Using useless `@pytest.mark.*` decorator for fixtures
def another_awesome_fixture():
...
def another_awesome_fixture(): ...
```

### W6403 `deprecated-positional-argument-for-pytest-fixture`
Expand All @@ -151,8 +148,7 @@ import pytest


@pytest.fixture("module") # <- Using a deprecated positional arguments for fixture
def awesome_fixture():
...
def awesome_fixture(): ...
```

### F6401 `cannot-enumerate-pytest-fixtures`
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ keywords = [

requires-python = ">=3.8"
dependencies = [
"pylint>=2,<4",
"pylint >=2, <5",
"pytest>=4.6",
]

Expand Down
Loading
Loading