/
pyproject.toml
48 lines (38 loc) · 1.19 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "ipyaladin"
dynamic = ["version"]
dependencies = ["anywidget", "astropy"]
readme = "README.md"
[project.optional-dependencies]
dev = ["watchfiles", "jupyterlab", "ruff"]
# 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"
]
ignore = ["ISC001"]
[tool.ruff.format]
docstring-code-format = false