-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
150 lines (122 loc) · 3.1 KB
/
pyproject.toml
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
[build-system]
requires = ["flit-core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Framework :: Pytest",
"Programming Language :: Python :: 3",
"Topic :: Utilities",
"Topic :: Software Development :: Testing",
"License :: OSI Approved :: MIT License",
]
keywords = ["testing", "pytest"]
name = "tavern-flask"
description = "Flask plugin for Tavern"
version = "0.1.0"
dependencies = [
"tavern>=2.10.1,<3",
"Flask",
]
requires-python = ">=3.8"
[[project.authors]]
name = "Michael Boulton"
[project.license]
file = "LICENSE"
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
Home = "https://taverntesting.github.io/"
Documentation = "https://tavern.readthedocs.io/en/latest/"
Source = "https://github.com/taverntesting/tavern-flask"
[project.optional-dependencies]
dev = [
"flit >=3.2,<4",
"wheel",
"pre-commit",
"tox>=4,<5",
"ruff>=0.3.4",
"uv",
"colorlog",
# This has to be installed separately, otherwise you can't upload to pypi
# "tbump@https://github.com/michaelboulton/tbump/archive/714ba8957a3c84b625608ceca39811ebe56229dc.zip",
]
[tool.mypy]
python_version = 3.8
# See https://mypy.readthedocs.io/en/stable/running_mypy.html#mapping-file-paths-to-modules
explicit_package_bases = true
exclude = [
'bazel-*',
'venv/',
]
[tool.coverage.run]
branch = false
omit = [
"tests/*",
".eggs/*",
"env/*",
"build/*",
"dist/*",
]
source = ["tavern_flask"]
[tool.ruff]
target-version = "py38"
extend-exclude = [
"tests/unit/tavern_grpc/test_services_pb2.py",
"tests/unit/tavern_grpc/test_services_pb2.pyi",
"tests/unit/tavern_grpc/test_services_pb2_grpc.py",
]
[tool.ruff.lint]
ignore = [
"E501", # line length
"RUF005", # union types only valid from 3.10+
"B905", # zip(..., strict=True) only valid from 3.10+
"PLR0912", "PLR0915", "PLR0911", "PLR0913", # too many branches/variables/return values - sometimes this is just unavoidable
"PLR2004", # 'magic numbers'
"PLW2901", # Loop variable overridden
]
select = ["E", "F", "B", "W", "I", "S", "C4", "ICN", "T20", "PLE", "RUF", "SIM105", "PL"]
# Look at: UP
[tool.ruff.lint.per-file-ignores]
"example/server.py" = ["S"]
[tool.ruff.lint.isort]
known-first-party = ["tavern_flask"]
[tool.ruff.format]
docstring-code-format = true
[tool.tbump.version]
current = "0.1.0"
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
((?P<release>[a-zA-Z]+)(?P<build>\d+))?
'''
[tool.tbump.git]
message_template = "Bump to {new_version}"
tag_template = "{new_version}"
[[tool.tbump.file]]
src = "tavern_flask/__init__.py"
[[tool.tbump.file]]
src = "pyproject.toml"
[project.entry-points.tavern_http]
flask = "tavern_flask.tavernhook"
[tool.pytest.ini_options]
testpaths = ["tavern_flask", "example"]
addopts = [
"--doctest-modules",
"-r", "xs",
"-vv",
"--strict-markers",
"-p", "no:logging",
"--tb=short",
"--color=yes",
"--tavern-http-backend=flask"
]
norecursedirs = [
".git",
".tox",
]