-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
137 lines (121 loc) · 3.09 KB
/
pyproject.toml
File metadata and controls
137 lines (121 loc) · 3.09 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
133
134
135
136
137
[project]
name = "pytest-sphinx"
version = "0.7.1"
description = "Doctest plugin for pytest with support for Sphinx-specific doctest-directives"
readme = "README.rst"
requires-python = ">=3.10"
license = { file = "LICENSE" }
keywords = ["sphinx", "pytest", "rst"]
authors = [
{ name="Thomas Wimmer", email="thomaswimmer@posteo.com" }
]
maintainers = [
{ name="Thomas Wimmer", email="thomaswimmer@posteo.com" }
]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Pytest",
"Intended Audience :: Developers",
"Topic :: Software Development :: Testing",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Operating System :: OS Independent",
"License :: OSI Approved :: BSD License",
]
# Requirements
dependencies = [
"pytest >=8.1.1",
]
[project.optional-dependencies]
lint = [
"ruff",
]
[project.urls]
homepage = "https://github.com/thisch/pytest-sphinx"
[project.entry-points."pytest11"]
"sphinx" = "pytest_sphinx"
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[dependency-groups]
dev = [
"sphinx>=8.1.3",
]
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
# Same as Black.
line-length = 88
indent-width = 4
target-version = "py310"
[tool.ruff.lint]
select = ["E", # pycodestyle
"F", # pyflakes
"PL", # pylint
"UP", # refurb
"R", # pylint-related
"D", # docstring
"PT", # pytest
"B", # bugbear
"D212", # summary of multi-line docstrings should start at first line
"D417", # undocumented-param
"I", # isort
]
ignore = [
"PLR2004", # magic value used in comparison
"PLR0911", # too many return statements
"PLR0912", # too many branches
"PLR0915", # too many statements
"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 __init__
"D401", # imperative mood
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.isort]
force-single-line = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q"
testpaths = [
"tests",
]