-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
171 lines (154 loc) · 4.04 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
[build-system]
requires = ["setuptools>=48", "setuptools_scm[toml]>=6.3.1"]
build-backend = "setuptools.build_meta"
[project]
name = "pytest-servers"
description = "pytest servers"
readme = "README.rst"
license = {text = "Apache-2.0"}
authors = [{name = "Iterative", email = "[email protected]"}]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Development Status :: 3 - Alpha",
"Framework :: Pytest",
"Intended Audience :: Developers"
]
requires-python = ">=3.8"
dynamic = ["version"]
dependencies = [
"pytest>=6.2",
"requests",
"fsspec",
"universal-pathlib>=0.2.0",
"filelock>=3.3.2"
]
[project.entry-points.pytest11]
pytest-servers = "pytest_servers.fixtures"
[project.urls]
Issues = "https://github.com/iterative/pytest-servers/issues"
Source = "https://github.com/iterative/pytest-servers"
[project.optional-dependencies]
docker = ["docker>6"]
s3 = [
"moto[server]>=4",
"s3fs[boto3]>=2022.02.0",
"botocore>=1.31.17" # Temporary: explicitly define this to avoid pip backtracking while installing moto[server]
]
azure = [
"adlfs>=2022.02.22",
"pytest-servers[docker]"
]
gcs = [
"gcsfs>=2022.02.22",
"pytest-servers[docker]"
]
all = ["pytest-servers[s3,azure,gcs]"]
tests = [
# see https://github.com/nedbat/coveragepy/issues/1341#issuecomment-1228942657
"coverage-enable-subprocess",
"coverage[toml]>6",
"pytest-sugar==1.0.0",
"pytest-xdist==3.6.1",
"mypy==1.14.0",
"types-requests"
]
dev = [
"pytest-servers[all]",
"pytest-servers[tests]"
]
[tool.setuptools_scm]
[tool.setuptools.packages.find]
where = ["src"]
namespaces = false
[tool.pytest.ini_options]
addopts = "-ra -n=auto"
[tool.coverage.run]
branch = true
parallel = true
concurrency = ["multiprocessing", "thread"]
source = ["pytest_servers", "tests"]
[tool.coverage.paths]
source = ["src", "*/site-packages"]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"if typing.TYPE_CHECKING:",
"if TYPE_CHECKING:",
"raise NotImplementedError",
"raise AssertionError",
"@overload"
]
[tool.mypy]
# Error output
show_column_numbers = true
show_error_codes = true
show_error_context = true
show_traceback = true
pretty = true
check_untyped_defs = false
# Warnings
warn_no_return = true
warn_redundant_casts = true
warn_unreachable = true
ignore_missing_imports = true
files = ["src", "tests"]
[tool.codespell]
ignore-words-list = " "
skip = "CODE_OF_CONDUCT.rst"
[tool.ruff]
line-length = 88
target-version = "py38"
output-format = "full"
show-fixes = true
[tool.ruff.lint]
ignore = [
"S101", # assert
"PLR2004", # magic-value-comparison
"PLW2901", # redefined-loop-name
"ISC001", # single-line-implicit-string-concatenation
"SIM105", # suppressible-exception
"SIM108", # if-else-block-instead-of-if-exp
"D203", # one blank line before class
"D213", # multi-line-summary-second-line
"D100", # missing docstring in public module
"D101", # missing docstring in public class
"D102", # missing docstring in public method
"D103", # missing docstring in public function
"D104", # missing docstring in public package
"D105", # missing docstring in magic method
"D107", # missing docstring in method
"ANN002", # missing type annotation
"ANN101", # missing type annotation
"ANN204", # missing return type annotation
"PT004" # pytest-missing-fixture-name-underscore
]
select = ["ALL"]
[tool.ruff.lint.per-file-ignores]
"noxfile.py" = ["D", "PTH"]
"tests/**" = [
"S",
"ARG001",
"ARG002",
"ANN",
"D",
"PD011"
]
"src/pytest_servers/fixtures.py" = [
"PT001" # pytest-fixture-incorrect-parentheses-style
]
"src/pytest_servers/factory.py" = [
"ANN003" # missing type kwargs
]
"docs/**" = ["INP"]
[tool.ruff.lint.flake8-type-checking]
strict = true
[tool.ruff.lint.isort]
known-first-party = ["pytest_servers"]