diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index 2ee5938..4aa2ef3 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -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: >- @@ -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: >- @@ -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 diff --git a/README.md b/README.md index 066d3d2..bf0e0de 100644 --- a/README.md +++ b/README.md @@ -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` @@ -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` @@ -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`