-
Notifications
You must be signed in to change notification settings - Fork 49
/
pyproject.toml
132 lines (114 loc) · 3.03 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
[project]
name = "mkdocs-jupyter"
description = "Use Jupyter in mkdocs websites"
readme = "README.md"
requires-python = ">=3.9"
license = { "text" = "Apache-2.0" }
keywords = ["mkdocs", "jupyter", "jupyterlab", "notebooks", "documentation"]
authors = [{ name = "Daniel Rodriguez", email = "daniel@danielfrg.com" }]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"nbconvert>=7.2.9,<8",
"mkdocs>=1.4.0,<2",
"mkdocs-material>9.0.0",
"jupytext>1.13.8,<2",
"Pygments>2.12.0",
"ipykernel<7.0.0,>6.0.0",
]
dynamic = ["version"]
[tool.uv]
dev-dependencies = [
"isort",
"ruff==0.5.0",
"build",
"twine",
# Testing
"coverage[toml]",
"pymdown-extensions",
"pytest",
"pytest-cov",
# Utils
"jupyterlab",
]
[project.entry-points."mkdocs.plugins"]
mkdocs-jupyter = "mkdocs_jupyter.plugin:Plugin"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build]
artifacts = ["src/mkdocs_jupyter/**"]
exclude = [".github", "docs"]
[tool.hatch.version]
path = "src/mkdocs_jupyter/__about__.py"
[tool.hatch.metadata]
allow-direct-references = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = [
"-s",
"-vv",
"--strict-config",
"--strict-markers",
"--ignore=dist",
"--ignore=site-packages",
# "--strict-markers",
"--cov=mkdocs_jupyter",
"--cov-report=term",
"--cov-config=pyproject.toml",
]
markers = [
"pkg: marks tests as Packaging tests",
"adsapi: mark test that require connection to the API",
]
xfail_strict = true
filterwarnings = ["ignore::DeprecationWarning"]
[tool.coverage.run]
branch = true
parallel = true
omit = ["tests/*"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"pragma: no cover",
"raise NotImplementedError",
]
[tool.ruff]
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
# "I", # isort
"B", # flake8-bugbear
]
exclude = [".venv", "tests", "demo"]
[tool.isort]
profile = "black"
[tool.mypy]
strict = true
[tool.pydocstyle]
add_ignore = ["D100", "D101", "D102", "D103", "D104", "D105"]
convention = "numpy"
inherit = false
match_dir = "mkdocs_jupyter"
[tool.codespell]
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
skip = '.git*,*-lock.yaml,*.lock,*.css'
check-hidden = true
# image embeddings and all generally too long lines in "", and all urls
ignore-regex = '(^\s*"(image/\S+": "|.{300,}).*|https?://\S+)'
# ignore-words-list = ''
[project.urls]
Documentation = "https://github.com/danielfrg/mkdocs-jupyter#readme"
Issues = "https://github.com/danielfrg/mkdocs-jupyter/issues"
Source = "https://github.com/danielfrg/mkdocs-jupyter"