Skip to content

Commit df87d83

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

24 files changed

+26
-5
lines changed

src/pytest_bdd/__init__.py

+1
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

+1-1
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

+1
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

+1
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

+1
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

+3-4
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

+1
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

+1
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

+1
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

+1
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

src/pytest_bdd/steps.py

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def _(article):
3434
pass
3535
3636
"""
37+
3738
from __future__ import annotations
3839

3940
import enum

src/pytest_bdd/types.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Common type definitions."""
2+
23
from __future__ import annotations
34

45
FEATURE = "feature"

src/pytest_bdd/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Various utility functions."""
2+
23
from __future__ import annotations
34

45
import base64

tests/feature/test_cucumber_json.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test cucumber json output."""
2+
23
from __future__ import annotations
34

45
import json

tests/feature/test_feature_base_dir.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test feature base dir."""
2+
23
import os
34

45
import pytest

tests/feature/test_multiline.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Multiline steps tests."""
2+
23
import textwrap
34

45
import pytest

tests/feature/test_outline.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Scenario Outline tests."""
2+
23
import textwrap
34

45
from pytest_bdd.utils import collect_dumped_objects

tests/feature/test_outline_empty_values.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Scenario Outline with empty example values tests."""
2+
23
import textwrap
34

45
from pytest_bdd.utils import collect_dumped_objects

tests/feature/test_report.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test scenario reporting."""
2+
23
import textwrap
34

45
import pytest

tests/feature/test_scenarios.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test scenarios shortcut."""
2+
23
import textwrap
34

45

tests/feature/test_tags.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test tags."""
2+
23
import textwrap
34

45
import pytest

tests/generation/test_generate_missing.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Code generation and assertion tests."""
2+
23
import itertools
34
import textwrap
45

tests/library/test_parent.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
33
Check the parent givens are collected and overridden in the local conftest.
44
"""
5+
56
import textwrap
67

78
from pytest_bdd.utils import collect_dumped_objects

tests/steps/test_given.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Given tests."""
2+
23
import textwrap
34

45

0 commit comments

Comments
 (0)