Skip to content

Commit 3ebd9c7

Browse files
authored
Merge pull request #663 from pytest-dev/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 977bf61 + c64915c commit 3ebd9c7

25 files changed

+29
-8
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
repos:
44
- repo: https://github.com/psf/black
55
# If you update the version here, also update it in tox.ini (py*-pytestlatest-linters)
6-
rev: 23.11.0
6+
rev: 24.2.0
77
hooks:
88
- id: black
99
- repo: https://github.com/pycqa/isort
10-
rev: 5.12.0
10+
rev: 5.13.2
1111
hooks:
1212
- id: isort
1313
name: isort (python)
@@ -19,7 +19,7 @@ repos:
1919
- id: check-yaml
2020
- id: check-added-large-files
2121
- repo: https://github.com/asottile/pyupgrade
22-
rev: v3.15.0
22+
rev: v3.15.1
2323
hooks:
2424
- id: pyupgrade
2525
args: ["--py38-plus"]

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

0 commit comments

Comments
 (0)