Skip to content

Commit 9081a08

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9bbe694 commit 9081a08

24 files changed

+26
-5
lines changed

src/pytest_bdd/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""pytest-bdd public API."""
2+
23
from __future__ import annotations
34

45
from pytest_bdd.scenario import scenario, scenarios

src/pytest_bdd/cucumber_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Cucumber json output formatter."""
2+
23
from __future__ import annotations
34

45
import json
@@ -46,7 +47,6 @@ def unconfigure(config: Config) -> None:
4647

4748

4849
class LogBDDCucumberJSON:
49-
5050
"""Logging plugin for cucumber like json output."""
5151

5252
def __init__(self, logfile: str) -> None:

src/pytest_bdd/exceptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""pytest-bdd Exceptions."""
2+
23
from __future__ import annotations
34

45

src/pytest_bdd/feature.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
:note: There are no multiline steps, the description of the step must fit in
2424
one line.
2525
"""
26+
2627
from __future__ import annotations
2728

2829
import glob

src/pytest_bdd/generation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""pytest-bdd missing test code generation."""
2+
23
from __future__ import annotations
34

45
import itertools

src/pytest_bdd/parsers.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Step parsers."""
2+
23
from __future__ import annotations
34

45
import abc
@@ -103,13 +104,11 @@ def is_matching(self, name: str) -> bool:
103104

104105

105106
@overload
106-
def get_parser(step_name: str) -> string:
107-
...
107+
def get_parser(step_name: str) -> string: ...
108108

109109

110110
@overload
111-
def get_parser(step_name: TStepParser) -> TStepParser:
112-
...
111+
def get_parser(step_name: TStepParser) -> TStepParser: ...
113112

114113

115114
def get_parser(step_name: str | StepParser) -> StepParser:

src/pytest_bdd/plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Pytest plugin entry point. Used for any fixtures needed."""
2+
23
from __future__ import annotations
34

45
from typing import TYPE_CHECKING, Any, Callable, Generator, TypeVar, cast

src/pytest_bdd/reporting.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Collection of the scenario execution statuses, timing and other information
44
that enriches the pytest test reporting.
55
"""
6+
67
from __future__ import annotations
78

89
import time

src/pytest_bdd/scenario.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
scenario_name="Publishing the article",
1111
)
1212
"""
13+
1314
from __future__ import annotations
1415

1516
import contextlib

src/pytest_bdd/scripts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""pytest-bdd scripts."""
2+
23
from __future__ import annotations
34

45
import argparse

0 commit comments

Comments
 (0)