Skip to content

Commit 8eeb77a

Browse files
committed
Ignore pytest fixtures.
1 parent 70f8bf5 commit 8eeb77a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

flake8_params/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
".setter", # Property setter
5151
".command", # Probably a click command
5252
".group", # Probably a click group
53+
".fixture", # Probably a pytest fixture
5354
}
5455

5556

tests/example_code.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,3 +375,16 @@ def __init_subclass__(cls, swallow, **kwargs) -> None:
375375
376376
:param \*\*kwargs:
377377
"""
378+
379+
380+
# 3rd party
381+
import pytest # type: ignore
382+
383+
384+
@pytest.fixture()
385+
def a_fixture(foo) -> str:
386+
"""
387+
A pytest fixture .
388+
"""
389+
390+
return "abc"

0 commit comments

Comments
 (0)