forked from cds-astro/ipyaladin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
72 lines (60 loc) · 1.79 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "ipyaladin"
dynamic = ["version"]
dependencies = ["anywidget", "astropy"]
readme = "README.md"
license = "BSD-3-Clause"
requires-python = ">=3.8"
[project.optional-dependencies]
dev = ["pytest", "watchfiles", "jupyterlab", "ruff", "nbconvert"]
recommended = ["mocpy", "regions", "astroquery"]
notebooks = ["requests"]
docs = ["autoapi",
"jupyterlab",
"myst-parser",
"nbsphinx",
"numpydoc",
"sphinx",
"sphinx-autoapi>=3.0.0",
"sphinx-collections",
"sphinx-copybutton",
"sphinx-gallery",
"pydata-sphinx-theme"
]
# automatically add the dev feature to the default env (e.g., hatch shell)
[tool.hatch.envs.default]
features = ["dev"]
[tool.hatch.version]
path = "src/ipyaladin/__about__.py"
[tool.hatch.build]
only-packages = true
artifacts = ["src/ipyaladin/static/*"]
[tool.hatch.build.hooks.jupyter-builder]
build-function = "hatch_jupyter_builder.npm_builder"
ensured-targets = ["src/ipyaladin/static/widget.js"]
skip-if-exists = ["src/ipyaladin/static/widget.js"]
dependencies = ["hatch-jupyter-builder>=0.5.0"]
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
npm = "npm"
build_cmd = "build"
[tool.ruff]
fix = true
show-fixes = true
extend-include = ["*.ipynb"]
[tool.ruff.lint]
extend-select = ["E", "W", "YTT", "ASYNC", "BLE", "B", "A",
"C4", "ISC", "PIE", "PYI", "RSE", "RET", "SIM",
"PTH", "TD", "ERA", "PL", "PERF", "RUF", "ARG",
"ANN", "D"
]
ignore = ["ISC001", "ANN101", "D203", "D213", "D100", "D105"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.per-file-ignores]
# D104: Missing docstring in public package
"__init__.py" = ["D104"]
[tool.ruff.format]
docstring-code-format = false