Skip to content

Commit

Permalink
Merge pull request #663 from pytest-dev/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
youtux committed Mar 17, 2024
2 parents 977bf61 + c64915c commit 3ebd9c7
Show file tree
Hide file tree
Showing 25 changed files with 29 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Expand Up @@ -3,11 +3,11 @@
repos:
- repo: https://github.com/psf/black
# If you update the version here, also update it in tox.ini (py*-pytestlatest-linters)
rev: 23.11.0
rev: 24.2.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
Expand All @@ -19,7 +19,7 @@ repos:
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.15.1
hooks:
- id: pyupgrade
args: ["--py38-plus"]
Expand Down
1 change: 1 addition & 0 deletions src/pytest_bdd/__init__.py
@@ -1,4 +1,5 @@
"""pytest-bdd public API."""

from __future__ import annotations

from pytest_bdd.scenario import scenario, scenarios
Expand Down
2 changes: 1 addition & 1 deletion src/pytest_bdd/cucumber_json.py
@@ -1,4 +1,5 @@
"""Cucumber json output formatter."""

from __future__ import annotations

import json
Expand Down Expand Up @@ -46,7 +47,6 @@ def unconfigure(config: Config) -> None:


class LogBDDCucumberJSON:

"""Logging plugin for cucumber like json output."""

def __init__(self, logfile: str) -> None:
Expand Down
1 change: 1 addition & 0 deletions src/pytest_bdd/exceptions.py
@@ -1,4 +1,5 @@
"""pytest-bdd Exceptions."""

from __future__ import annotations


Expand Down
1 change: 1 addition & 0 deletions src/pytest_bdd/feature.py
Expand Up @@ -23,6 +23,7 @@
:note: There are no multiline steps, the description of the step must fit in
one line.
"""

from __future__ import annotations

import glob
Expand Down
1 change: 1 addition & 0 deletions src/pytest_bdd/generation.py
@@ -1,4 +1,5 @@
"""pytest-bdd missing test code generation."""

from __future__ import annotations

import itertools
Expand Down
7 changes: 3 additions & 4 deletions src/pytest_bdd/parsers.py
@@ -1,4 +1,5 @@
"""Step parsers."""

from __future__ import annotations

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


@overload
def get_parser(step_name: str) -> string:
...
def get_parser(step_name: str) -> string: ...


@overload
def get_parser(step_name: TStepParser) -> TStepParser:
...
def get_parser(step_name: TStepParser) -> TStepParser: ...


def get_parser(step_name: str | StepParser) -> StepParser:
Expand Down
1 change: 1 addition & 0 deletions src/pytest_bdd/plugin.py
@@ -1,4 +1,5 @@
"""Pytest plugin entry point. Used for any fixtures needed."""

from __future__ import annotations

from typing import TYPE_CHECKING, Any, Callable, Generator, TypeVar, cast
Expand Down
1 change: 1 addition & 0 deletions src/pytest_bdd/reporting.py
Expand Up @@ -3,6 +3,7 @@
Collection of the scenario execution statuses, timing and other information
that enriches the pytest test reporting.
"""

from __future__ import annotations

import time
Expand Down
1 change: 1 addition & 0 deletions src/pytest_bdd/scenario.py
Expand Up @@ -10,6 +10,7 @@
scenario_name="Publishing the article",
)
"""

from __future__ import annotations

import contextlib
Expand Down
1 change: 1 addition & 0 deletions src/pytest_bdd/scripts.py
@@ -1,4 +1,5 @@
"""pytest-bdd scripts."""

from __future__ import annotations

import argparse
Expand Down
1 change: 1 addition & 0 deletions src/pytest_bdd/steps.py
Expand Up @@ -34,6 +34,7 @@ def _(article):
pass
"""

from __future__ import annotations

import enum
Expand Down
1 change: 1 addition & 0 deletions src/pytest_bdd/types.py
@@ -1,4 +1,5 @@
"""Common type definitions."""

from __future__ import annotations

FEATURE = "feature"
Expand Down
1 change: 1 addition & 0 deletions src/pytest_bdd/utils.py
@@ -1,4 +1,5 @@
"""Various utility functions."""

from __future__ import annotations

import base64
Expand Down
1 change: 1 addition & 0 deletions tests/feature/test_cucumber_json.py
@@ -1,4 +1,5 @@
"""Test cucumber json output."""

from __future__ import annotations

import json
Expand Down
1 change: 1 addition & 0 deletions tests/feature/test_feature_base_dir.py
@@ -1,4 +1,5 @@
"""Test feature base dir."""

import os

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/feature/test_multiline.py
@@ -1,4 +1,5 @@
"""Multiline steps tests."""

import textwrap

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/feature/test_outline.py
@@ -1,4 +1,5 @@
"""Scenario Outline tests."""

import textwrap

from pytest_bdd.utils import collect_dumped_objects
Expand Down
1 change: 1 addition & 0 deletions tests/feature/test_outline_empty_values.py
@@ -1,4 +1,5 @@
"""Scenario Outline with empty example values tests."""

import textwrap

from pytest_bdd.utils import collect_dumped_objects
Expand Down
1 change: 1 addition & 0 deletions tests/feature/test_report.py
@@ -1,4 +1,5 @@
"""Test scenario reporting."""

import textwrap

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/feature/test_scenarios.py
@@ -1,4 +1,5 @@
"""Test scenarios shortcut."""

import textwrap


Expand Down
1 change: 1 addition & 0 deletions tests/feature/test_tags.py
@@ -1,4 +1,5 @@
"""Test tags."""

import textwrap

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/generation/test_generate_missing.py
@@ -1,4 +1,5 @@
"""Code generation and assertion tests."""

import itertools
import textwrap

Expand Down
1 change: 1 addition & 0 deletions tests/library/test_parent.py
Expand Up @@ -2,6 +2,7 @@
Check the parent givens are collected and overridden in the local conftest.
"""

import textwrap

from pytest_bdd.utils import collect_dumped_objects
Expand Down
1 change: 1 addition & 0 deletions tests/steps/test_given.py
@@ -1,4 +1,5 @@
"""Given tests."""

import textwrap


Expand Down

0 comments on commit 3ebd9c7

Please sign in to comment.