-
Notifications
You must be signed in to change notification settings - Fork 65
/
pyproject.toml
134 lines (117 loc) · 3.21 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
[build-system]
requires = ["hatchling>=1.5"]
build-backend = "hatchling.build"
[project]
name = "jupyter-sphinx"
dynamic = ["version"]
description = "Jupyter Sphinx Extensions"
requires-python = ">=3.8"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering"
]
dependencies = [
"ipykernel>=4.5.1",
"IPython",
"ipywidgets>=7.0.0",
"nbconvert>=5.5",
"nbformat",
"Sphinx>=7",
]
[[project.authors]]
name = "Jupyter Development Team"
email = "[email protected]"
[project.license]
file = "LICENSE"
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
"Bug Tracker" = "https://github.com/jupyter/jupyter-sphinx/issues/"
Documentation = "https://jupyter-sphinx.readthedocs.io"
Homepage = "https://jupyter.org"
"Source Code" = "https://github.com/jupyter/jupyter-sphinx/"
[project.optional-dependencies]
test = [
"pytest",
"bash_kernel",
"pytest-regressions",
"beautifulsoup4",
"matplotlib",
]
doc = [
"sphinx-design",
"sphinx-book-theme",
"matplotlib"
]
[tool.hatch.version]
path = "jupyter_sphinx/_version.py"
[tool.hatch.build.targets.sdist]
include = [
"/jupyter_sphinx",
]
[tool.hatch.envs.lint]
detached = true
dependencies = ["pre-commit"]
[tool.hatch.envs.lint.scripts]
build = "pre-commit run --all-files"
[tool.hatch.envs.doc]
features = ["doc"]
[tool.hatch.envs.doc.scripts]
build = "sphinx-build -v -b html docs docs/_build/html"
[tool.hatch.envs.test]
features = ["test"]
[tool.hatch.envs.test.env-vars]
JUPYTER_PLATFORM_DIRS = "1"
[tool.hatch.envs.test.scripts]
test = ["python -m bash_kernel.install", "python -m pytest -vv {args}"]
nowarn = "test -W default {args}"
[tool.pytest.ini_options]
minversion = "7.0"
xfail_strict = true
log_cli_level = "info"
addopts = [
"-ra", "--durations=10", "--color=yes", "--strict-config", "--strict-markers"
]
testpaths = ["tests/"]
filterwarnings = [
"error",
# https://github.com/dateutil/dateutil/issues/1314
"module:datetime.datetime.utc:DeprecationWarning"
]
[tool.ruff]
ignore-init-module-imports = true
fix = true
select = ["E", "F", "W", "I", "D", "RUF"]
ignore = [
"E501", # line too long | Black take care of it
"D212", # Multi-line docstring
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D105", # Missing docstring in magic method
"D107", # Missing docstring in `__init__`
]
[tool.ruff.flake8-quotes]
docstring-quotes = "double"
[tool.ruff.pydocstyle]
convention = "google"
[tool.black]
line-length = 100
force-exclude = "tests/test_execute/*"
[tool.doc8]
ignore = [
"D001" # we follow a 1 line = 1 paragraph style
]