-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
82 lines (72 loc) · 1.73 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "xarray-fancy-repr"
version = "0.0.2"
description = "Fancy reprs for Xarray objects in Jupyter notebooks"
keywords = ["xarray", "jupyter", "widget"]
readme = "README.md"
authors = [
{name = "Benoît Bovy"},
]
maintainers = [
{name = "xarray-fancy-repr contributors"},
]
license = {text = "Apache-2.0"}
dependencies = ["anywidget", "xarray"]
[project.optional-dependencies]
dev = ["watchfiles", "jupyterlab", "pytest", "pre-commit"]
[project.urls]
Repository = "https://github.com/benbovy/xarray-fancy-repr"
# automatically add the dev feature to the default env (e.g., hatch shell)
[tool.hatch.envs.default]
features = ["dev"]
[tool.hatch.build]
artifacts = ["src/xarray_fancy_repr/static/*"]
[tool.hatch.build.hooks.jupyter-builder]
build-function = "hatch_jupyter_builder.npm_builder"
ensured-targets = ["src/xarray_fancy_repr/static/widget.js"]
skip-if-exists = ["src/xarray_fancy_repr/static/widget.js"]
dependencies = ["hatch-jupyter-builder>=0.5.0"]
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
npm = "npm"
build_cmd = "build"
path = "js"
[tool.black]
line-length = 100
[tool.ruff]
target-version = "py311"
builtins = ["ellipsis"]
exclude = [
".git",
".eggs",
"build",
"dist",
"__pycache__",
]
# E402: module level import not at top of file
# E501: line too long - let black worry about that
# E731: do not assign a lambda expression, use a def
ignore = [
"E402",
"E501",
"E731",
]
select = [
# Pyflakes
"F",
# Pycodestyle
"E",
"W",
# isort
"I",
# Pyupgrade
"UP",
]
[tool.ruff.isort]
known-first-party = ["xarray_fancy_repr"]
known-third-party=[
"anywidgets",
"traitlets",
]