-
Notifications
You must be signed in to change notification settings - Fork 243
Expand file tree
/
Copy pathpyproject.toml
More file actions
132 lines (119 loc) · 3.76 KB
/
Copy pathpyproject.toml
File metadata and controls
132 lines (119 loc) · 3.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[project]
name = "pytest-bdd"
version = "8.1.0"
description = "BDD for pytest"
authors = [
{name="Oleg Pidsadnyi", email="oleg.pidsadnyi@gmail.com"},
{name="Anatoly Bubenkov", email="bubenkoff@gmail.com"},
]
maintainers = [
{name="Alessio Bogon", email="778703+youtux@users.noreply.github.com"},
]
license = "MIT"
readme = "README.rst"
classifiers = [
"Development Status :: 6 - Mature",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS :: MacOS X",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
requires-python = ">=3.10"
dependencies = [
"Mako",
"parse",
"parse-type",
"pytest>=7.0.0",
"typing-extensions",
"packaging",
# 31.0.0 and 32.0.0 crash with StopIteration on empty descriptions (fixed in 32.0.1)
"gherkin-official>=29.0.0,!=31.0.0,!=32.0.0",
]
[project.urls]
homepage = "https://pytest-bdd.readthedocs.io/"
documentation = "https://pytest-bdd.readthedocs.io/"
repository = "https://github.com/pytest-dev/pytest-bdd"
[project.entry-points."pytest11"]
"pytest-bdd" = "pytest_bdd.plugin"
[project.scripts]
"pytest-bdd" = "pytest_bdd.scripts:main"
[tool.poetry.group.dev.dependencies]
tox = ">=4.11.3"
mypy = ">=1.6.0"
types-setuptools = ">=68.2.0.0"
pytest-xdist = ">=3.3.1"
coverage = {extras = ["toml"], version = ">=6.5.0"}
Pygments = ">=2.20.0" # for code-block highlighting
# Docs tooling is not needed by the CI test jobs; sphinx-autobuild pulls in
# watchfiles, which does not build (yet) on pre-release pythons.
sphinx = {version = "*", python = "<3.15"}
sphinx-autobuild = {version = "*", python = "<3.15"}
[tool.poetry.group.build.dependencies]
build = "*"
twine = "*"
[build-system]
requires = ["poetry-core==2.2.1"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 120
lint.select = [
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"E4", # pycodestyle - error - import
"E7", # pycodestyle - error - statement
"E9", # pycodestyle - error - runtime
"F", # pyflakes
"I", # isort
"ISC", # flake8-implicit-str-concat
"PERF", # perflint
"UP", # pyupgrade
]
lint.ignore = [
# Covered by formatter
"ISC001" # single-line-implicit-string-concatenation
]
lint.isort.required-imports = [
"from __future__ import annotations",
]
[tool.coverage.report]
exclude_lines = [
"if TYPE_CHECKING:",
"if typing\\.TYPE_CHECKING:",
]
[tool.coverage.html]
show_contexts = true
[tool.coverage.run]
branch = true
# `parallel` will cause each tox env to put data into a different file, so that we can combine them later
parallel = true
source = ["pytest_bdd", "tests"]
dynamic_context = "test_function"
[tool.coverage.paths]
# treat these directories as the same when combining
# the first item is going to be the canonical dir
source = [
"src/pytest_bdd",
".tox/*/lib/python*/site-packages/pytest_bdd",
]
[tool.mypy]
# No `python_version` pin: use the running interpreter, so that the pytest
# version locked for that interpreter is parsed with matching syntax rules
# (pytest>=9 uses `match` statements, which are invalid syntax under 3.9).
warn_return_any = true
warn_unused_configs = true
files = "src/pytest_bdd/**/*.py"
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = ["parse", "parse_type"]
ignore_missing_imports = true