-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
86 lines (75 loc) · 2.11 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
[build-system]
requires = ["flit_core >=3.4,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "sphinx-data-viewer"
dynamic = ["version", "description"]
authors = [{ "name" = "team useblocks", "email" = "[email protected]" }]
license = { file = "LICENSE" }
readme = "README.rst"
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Sphinx :: Extension",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Markup",
]
requires-python = ">=3.8"
dependencies = ["sphinx>=5"]
[project.urls]
Homepage = "https://github.com/useblocks/sphinx-data-viewer"
Documentation = "https://sphinx-data-viewer.readthedocs.io/en/latest/"
[project.optional-dependencies]
docs = [
"furo",
"sphinx-design",
"sphinx-needs",
"sphinxcontrib.plantuml",
"sphinx-copybutton",
]
test = ["pytest", "pytest-cov"]
[tool.ruff.lint]
extend-select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"I", # isort
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"UP", # pyupgrade
]
extend-ignore = ["ISC001", "RUF012"]
[tool.pytest.ini_options]
filterwarnings = ["error::DeprecationWarning"]
[tool.tox]
# To use tox, see https://tox.readthedocs.io
# $ pipx install tox
# it is suggested to use with https://github.com/tox-dev/tox-uv
# $ pipx inject tox tox-uv
legacy_tox_ini = """
[tox]
envlist = py38
[testenv]
usedevelop = true
[testenv:py{38,39,310,311,312}]
extras =
test
commands =
pytest {posargs:--cov=src}
[testenv:docs]
extras =
docs
passenv =
BUILDER
CLEAN
TERM
commands_pre =
python -c "import shutil; shutil.rmtree('docs/_build/{env:BUILDER:html}', ignore_errors=True) if '{env:CLEAN:}' else None"
commands =
sphinx-build -nW --keep-going -b {env:BUILDER:html} docs/ docs/_build/{env:BUILDER:html} {posargs:-T}
"""