Debian Codegraph @

pyproject.toml

raw ◀ ▶
1 Debian patch touch this file
1 [build-system]
•2 requires = ["setuptools>=42", "wheel"]
3
4 [tool.setuptools.dynamic]
5 version = {attr = "pydata_sphinx_theme.__version__"}
6
7 [tool.sphinx-theme-builder]
8 node-version = "22.9.0"
9 theme-name = "pydata_sphinx_theme"
10 additional-compiled-static-assets = [
11 "webpack-macros.html",
12 "vendor/",
13 "scripts/bootstrap.js",
14 "scripts/fontawesome.js",
15 "locale/",
16 ]
17
18 [project]
19 name = "pydata-sphinx-theme"
20 description = "Bootstrap-based Sphinx theme from the PyData community"
21 dynamic = ["version"]
22 readme = "README.md"
23 requires-python = ">=3.10"
24 dependencies = [
25 "sphinx>=7.0,<10",
26 "beautifulsoup4",
27 "docutils!=0.17.0",
28 "Babel",
29 "pygments>=2.7",
30 "accessible-pygments",
31 "typing-extensions",
32 ]
33 license = { file = "LICENSE" }
34 maintainers = [
35 { name = "Joris Van den Bossche", email = "[email protected]" },
36 ]
37 classifiers = [
38 "Development Status :: 5 - Production/Stable",
39 "Programming Language :: Python :: 3",
40 "Programming Language :: Python :: 3.10",
41 "Programming Language :: Python :: 3.11",
42 "Programming Language :: Python :: 3.12",
43 "Programming Language :: Python :: 3.13",
44 "Programming Language :: Python :: 3.14",
45 "Framework :: Sphinx",
46 "Framework :: Sphinx :: Theme",
47 "License :: OSI Approved :: BSD License",
48 "Operating System :: OS Independent",
49 ]
50
51 [project.urls]
52 "Source" = "https://github.com/pydata/pydata-sphinx-theme"
53
54 [project.optional-dependencies]
55 doc = [
56 "astroid>=3,!=4.0.3", # fix for sphinx.autoapi and read the docs, should be reverted at a later date - see issue #2125
57 "numpydoc",
58 "linkify-it-py", # for link shortening
59 "rich",
60 "sphinxext-rediraffe",
61 # TODO: unpin sphinx-sitemap once a solution is offered for https://github.com/jdillard/sphinx-sitemap/issues/109
62 "sphinx-sitemap<2.7.0",
63 "sphinx-autoapi==3.6.1",
64 # For examples section
65 "myst-parser",
66 "ablog>=0.11.8",
67 "jupyter_sphinx",
68 "pandas",
69 "plotly",
70 "matplotlib",
71 "numpy",
72 "xarray",
73 "sphinx-copybutton",
74 "sphinx-design",
75 "sphinx-togglebutton",
76 "jupyterlite-sphinx",
77 "sphinxcontrib-mermaid",
78 "sphinxcontrib-youtube>=1.4.1",
79 "sphinx-favicon>=1.0.1",
80 "ipykernel",
81 "nbsphinx",
82 "ipyleaflet",
83 "colorama",
84 "ipywidgets",
85 "graphviz",
86 ]
87 dev = [
88 "pyyaml",
89 "pre-commit",
90 "pydata-sphinx-theme[doc,test]",
91 "tox",
92 "pandoc",
93 "sphinx-theme-builder[cli]",
94 ]
95 test = [
96 "pytest",
97 "pytest-cov",
98 "pytest-regressions",
99 "sphinx[test]",
100 "pytest-playwright"
101 ]
102 a11y = ["pydata-sphinx-theme[test]"]
103 i18n = ["Babel", "jinja2"]
104
105 [project.entry-points]
106 "sphinx.html_themes" = { pydata_sphinx_theme = "pydata_sphinx_theme" }
107
108 [tool.doc8]
109 ignore = ["D001"] # we follow a 1 line = 1 paragraph style
110
111 [tool.ruff]
112 fix = true
113 # keep consistent with black
114 line-length = 88
115 indent-width = 4
116
117 [tool.ruff.lint]
118 ignore = [
119 "D107", # Missing docstring in `__init__` | set the docstring in the class
120 "D205", # 1 blank line required between summary line and description,
121 "D212", # docstring summary must be on first physical line
122 "W291", # let pre-commit handle trailing whitespace
123
124 ]
125 select = ["E", "F", "W", "I", "D", "RUF", "G"]
126
127 [tool.ruff.lint.flake8-quotes]
128 docstring-quotes = "double"
129
130 [tool.ruff.lint.pydocstyle]
131 convention = "google"
132
133 [tool.ruff.lint.isort]
134 lines-between-types = 1
135 lines-after-imports = 2
136
137 [tool.djlint]
138 profile = "jinja"
139 extension = "html"
140 indent = 2
141 max_line_length = 120
142 use_gitignore = true
143 format_js = true
144 format_css = true
145 ignore = "H006,J018,T003,H025"
146
147 [tool.pytest.ini_options]
148 markers = "a11y: mark a test as an accessibility test"
149 addopts = "--durations=10"
150
151 [tool.coverage.run]
152 source = ["pydata_sphinx_theme"]
153 branch = true
154 relative_files = true
155
156 [tool.coverage.report]
157 fail_under = 80
158 show_missing = true
159 skip_covered = true
160
161 [tool.coverage.paths]
162 source = ["src", ".tox/py*/**/site-packages"]