This repository has been archived by the owner on Feb 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
146 lines (123 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
[build-system]
requires = ["setuptools>=65.4.1", "setuptools_scm[toml]>=7"]
build-backend = "setuptools.build_meta"
[project]
name = "sphinx-multiversion-contrib"
dynamic = ["version"]
description = "Add support for multiple versions to sphinx"
authors = [{name = "IQM Finland Oy", email = "[email protected]"}]
readme = "README.rst"
license = {file = "LICENSE.rst"}
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"License :: OSI Approved :: BSD License"
]
requires-python = ">=3.9, <3.12"
dependencies = [
"sphinx >= 4.5.0",
"packaging >= 23.0"
]
[project.urls]
homepage = "https://github.com/iqm-finland/sphinx-multiversion-contrib"
documentation = "https://iqm-finland.github.io/sphinx-multiversion-contrib"
repository = "https://github.com/iqm-finland/sphinx-multiversion-contrib.git"
changelog = "https://github.com/iqm-finland/sphinx-multiversion-contrib/blob/main/CHANGELOG.rst"
[project.optional-dependencies]
# Add here additional requirements for extra features, to install with:
# `pip install iqm-cortex-cli[dev,docs,test]`
dev = [
"tox == 4.3.5"
]
test = [
"black == 23.7.0",
"isort == 5.12.0",
"mypy == 1.5.0",
"pylint == 2.17.5",
"pytest == 7.4.0",
"pytest-cov == 4.1.0"
]
docs = [
"sphinx-book-theme == 0.3.3"
]
cicd = [
"twine ~= 4.0"
]
[project.scripts]
sphinx-multiversion = "sphinx_multiversion:main"
[tool.setuptools_scm]
version_scheme = "no-guess-dev"
[tool.pytest.ini_options]
pythonpath = "src"
norecursedirs = [
".github",
".mypy_cache",
".tox",
"build",
"docs",
"venv"
]
testpaths = ["tests"]
filterwarnings = [
"ignore::DeprecationWarning:xarray",
"ignore::DeprecationWarning:distutils",
"ignore::FutureWarning:numpy"
]
[tool.black]
line-length = 120
skip-string-normalization = true
target-version = ["py311"]
[tool.coverage.run]
branch = true
source = ["sphinx_multiversion"]
[tool.coverage.paths]
source = [
"src/",
"*/site-packages/",
]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
'if self\.debug',
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
]
[tool.isort]
# Make isort and black compatible
profile = "black"
line_length = 120
balanced_wrapping = true
force_sort_within_sections = true
reverse_relative = true
group_by_package = true
[tool.mypy]
namespace_packages = true
verbosity = 0
[[tool.mypy.overrides]]
module = [
"sphinx_multiversion",
]
ignore_missing_imports = true
[tool.pylint.main]
disable = [
"abstract-method",
"duplicate-code",
"fixme",
"invalid-name",
"protected-access",
"too-few-public-methods",
]
extension-pkg-whitelist = ["pydantic"]
[tool.pylint.format]
max-line-length = 120
[tool.pylint.similarities]
ignore-imports = true
[tool.pylint.string]
check-quote-consistency = true