Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 11, 2024
1 parent 1c5a54e commit 97a6852
Showing 1 changed file with 4 additions and 8 deletions.
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

0 comments on commit 97a6852

Please sign in to comment.