Skip to content

Commit 8488752

Browse files
[pre-commit.ci] pre-commit autoupdate (#806)
updates: - [github.com/astral-sh/ruff-pre-commit: c60c980e561ed3e73101667fe8365c609d19a438 → b831c3dc5d27d9da294ae4e915773b99aa24a7c5](astral-sh/ruff-pre-commit@c60c980...b831c3d) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 5e3f8b7 commit 8488752

6 files changed

Lines changed: 9 additions & 8 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ repos:
99
- id: check-yaml
1010
- id: check-added-large-files
1111
- repo: https://github.com/astral-sh/ruff-pre-commit
12-
rev: "c60c980e561ed3e73101667fe8365c609d19a438" # frozen: v0.15.9
12+
rev: "c59bba8fb259db0fec2bbb77ad8ba51ea7341b56" # frozen: v0.15.20
1313
hooks:
1414
- id: ruff
1515
args: [ --fix ]
1616
- id: ruff-format
1717
- repo: https://github.com/python-poetry/poetry
18-
rev: "a84cd0f1bedb5769ef6ef7389d8ee99b93b9ba4c" # frozen: 2.3.2
18+
rev: "811a12dae0fe81f199e3f1b88b8b8be9eed543c2" # frozen: 2.4.1
1919
hooks:
2020
- id: poetry-check
2121
args: ["--lock"]

CHANGES.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Added
1515
Changed
1616
+++++++
1717
* Relaxed `gherkin-official` dependency requirement to `>=29.0.0` to allow for newer versions of the `gherkin-official` package.
18+
* Excluded `gherkin-official` `31.0.0` and `32.0.0`, which crash with ``StopIteration`` when parsing empty descriptions (fixed upstream in `32.0.1`).
1819

1920
Deprecated
2021
++++++++++

poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ dependencies = [
3636
"pytest>=7.0.0",
3737
"typing-extensions",
3838
"packaging",
39-
"gherkin-official>=29.0.0",
39+
# 31.0.0 and 32.0.0 crash with StopIteration on empty descriptions (fixed in 32.0.1)
40+
"gherkin-official>=29.0.0,!=31.0.0,!=32.0.0",
4041
]
4142

4243
[project.urls]

tests/parser/test_errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ def test_step_outside_scenario_or_background_error(pytester):
4040
features.joinpath("test.feature").write_text(
4141
textwrap.dedent(
4242
"""
43-
Feature: Invalid Feature
4443
# Step not inside a scenario or background
4544
Given a step that is not inside a scenario or background
4645
46+
Feature: Invalid Feature
4747
Scenario: A valid scenario
4848
Given a step inside a scenario
4949

tox.ini

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
2-
envlist = py{3.9,3.10,3.11}-pytest{7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2,8.3,latest}-gherkin_official{29,30,31,32,33,34,35,36,37,latest}-coverage
3-
py{3.12,3.13,3.14}-pytest{7.3,7.4,8.0,8.1,8.2,8.3,latest}-gherkin_official{29,30,31,32,33,34,35,36,37,latest}-coverage
2+
envlist = py{3.9,3.10,3.11}-pytest{7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2,8.3,latest}-gherkin_official{29,30,32,33,34,35,36,37,latest}-coverage
3+
py{3.12,3.13,3.14}-pytest{7.3,7.4,8.0,8.1,8.2,8.3,latest}-gherkin_official{29,30,32,33,34,35,36,37,latest}-coverage
44
py3.12-pytestlatest-xdist-coverage
55
mypy
66

@@ -17,7 +17,6 @@ deps =
1717
gherkin_official34: gherkin-official~=34.0.0
1818
gherkin_official33: gherkin-official~=33.0.0
1919
gherkin_official32: gherkin-official~=32.0.0
20-
gherkin_official31: gherkin-official~=31.0.0
2120
gherkin_official30: gherkin-official~=30.0.0
2221
gherkin_official29: gherkin-official~=29.0.0
2322

0 commit comments

Comments
 (0)