-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
176 lines (161 loc) · 4.55 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
172
173
174
175
176
[build-system]
requires = [
"sphinx-theme-builder @ https://github.com/pradyunsg/sphinx-theme-builder/archive/87214d0671c943992c05e3db01dca997e156e8d6.zip",
]
build-backend = "sphinx_theme_builder"
[tool.sphinx-theme-builder]
node-version = "20.12.1"
theme-name = "sphinx_syft_theme"
additional-compiled-static-assets = [
"webpack-macros.html",
"vendor/",
"styles/bootstrap.css",
"scripts/bootstrap.js",
"locale/",
"locales/"
]
[project]
name = "sphinx-syft-theme"
description = "Bootstrap-based Sphinx theme from the syft community"
dynamic = ["version"]
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"sphinx==7.4.7",
"beautifulsoup4",
"docutils>=0.21.0",
"Babel",
"pygments>=2.7",
"accessible-pygments",
"typing-extensions",
]
license = { file = "LICENSE" }
authors = [
{name = "Callis Ezenwaka", email = "callisezenwaka@gmail.com"},
]
maintainers = [
{ name = "Callis Ezenwaka", email = "callisezenwaka@gmail.com" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: Sphinx",
"Framework :: Sphinx :: Theme",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
]
[project.urls]
Homepage = "https://sphinx-syft-theme.readthedocs.io/"
Documentation = "https://sphinx-syft-theme.readthedocs.io/"
Repository = "https://github.com/callezenwaka/sphinx-syft-theme"
Changelog = "https://sphinx-syft-theme.readthedocs.io/en/latest/changelog.html"
[project.optional-dependencies]
doc = [
"colorama",
"linkify-it-py", # for link shortening
"rich",
# For examples section
"myst-parser",
"myst_nb",
"ipykernel",
"ipyleaflet",
"ipywidgets",
"jupyterlite-sphinx",
"jupyter_sphinx",
"matplotlib",
"nbclient",
"numpydoc",
"numpy",
"pandas",
"plotly",
"sphinx_click",
"sphinx-copybutton",
"sphinx-design",
"sphinx_comments",
"sphinx-togglebutton",
"sphinx_external_toc",
"sphinx-tabs",
"sphinx_thebe",
"sphinx-sitemap",
"sphinx-autoapi>=3.0.0",
"sphinxext-rediraffe",
"sphinxcontrib-bibtex",
"sphinxext-opengraph",
"sphinxcontrib-youtube>=1.4.1",
"sphinx-favicon>=1.0.1",
"xarray",
]
test = [
"pytest",
"pytest-cov",
"pytest-regressions",
"sphinx[test]"
]
dev = [
"pyyaml",
"pre-commit",
"sphinx-syft-theme[doc,test]",
"tox",
"pandoc",
"sphinx-theme-builder[cli]",
]
a11y = ["pytest-playwright"]
i18n = ["Babel", "jinja2"]
[tool.doc8]
ignore = ["D001"] # we follow a 1 line = 1 paragraph style
[tool.ruff]
fix = true
[tool.ruff.lint]
ignore = [
"E501", # line too long | Black take care of it
"D107", # Missing docstring in `__init__` | set the docstring in the class
]
ignore-init-module-imports = true
select = ["E", "F", "W", "I", "D", "RUF"]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.djlint]
profile = "jinja"
extension = "html"
indent = 2
max_line_length = 120
use_gitignore = true
format_js = true
format_css = true
ignore = "H006,J018,T003,H023,H025"
[tool.pytest.ini_options]
markers = "a11y: mark a test as an accessibility test"
filterwarnings = [
"error",
'ignore:Jupyter is migrating its paths to use standard platformdirs:DeprecationWarning',
'ignore:The frontend\.OptionParser class will be replaced:DeprecationWarning',
'ignore:The frontend\.Option class will be removed:DeprecationWarning',
'ignore:nodes\.Node\.traverse\(\) is obsoleted by Node\.findall\(\):PendingDeprecationWarning',
# jupyter-client throws this
'ignore:datetime\.datetime\.utcfromtimestamp\(\) is deprecated:DeprecationWarning',
'ignore:datetime\.datetime\.utcnow\(\) is deprecated:DeprecationWarning',
# Sphinx triggers this
'''ignore:'imghdr' is deprecated and slated for removal in Python 3\.13:DeprecationWarning''',
# Sass deprecation warning
"ignore:Sass's behavior for declarations that appear after nested rules will be changing:DeprecationWarning",
'WARNING: [Social card] image cannot be an SVG image, skipping...',
"ignore:autosummary: stub file not found 'urllib.parse.DefragResult.index'.:UserWarning",
]
[tool.coverage.run]
source = ["sphinx_syft_theme"]
branch = true
relative_files = true
[tool.coverage.report]
fail_under = 80
show_missing = true
skip_covered = true
[tool.coverage.paths]
source = ["src", ".tox/py*/**/site-packages"]
[project.entry-points]
"sphinx.html_themes" = { sphinx_syft_theme = "sphinx_syft_theme" }