Skip to content

Commit 52ea5ca

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent cfa2c0c commit 52ea5ca

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ from fixture_collections import (
6767
) # <- Unused imported_fixture imported from fixture_collections
6868

6969

70-
def test_something(imported_fixture):
71-
...
70+
def test_something(imported_fixture): ...
7271
```
7372

7473
### `redefined-outer-name`
@@ -130,16 +129,14 @@ import pytest
130129

131130

132131
@pytest.fixture
133-
def awesome_fixture():
134-
...
132+
def awesome_fixture(): ...
135133

136134

137135
@pytest.fixture
138136
@pytest.mark.usefixtures(
139137
"awesome_fixture"
140138
) # <- Using useless `@pytest.mark.*` decorator for fixtures
141-
def another_awesome_fixture():
142-
...
139+
def another_awesome_fixture(): ...
143140
```
144141

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

152149

153150
@pytest.fixture("module") # <- Using a deprecated positional arguments for fixture
154-
def awesome_fixture():
155-
...
151+
def awesome_fixture(): ...
156152
```
157153

158154
### F6401 `cannot-enumerate-pytest-fixtures`

0 commit comments

Comments
 (0)