-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
82 lines (70 loc) · 1.58 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", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "ImageDePHI"
requires-python = ">=3.11"
dependencies = [
"click",
"tifftools",
"fastapi",
"python-multipart",
"hypercorn",
"pyyaml",
"Pillow",
"pooch",
"pydicom",
"tqdm",
"wsidicom",
"websockets",
]
dynamic = ["version"]
[project.scripts]
imagedephi = "imagedephi.main:imagedephi"
[tool.hatch.build]
only-include = [
"imagedephi",
]
artifacts = [
"imagedephi/web_static",
]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.jupyter-builder]
dependencies = ["hatch-jupyter-builder"]
build-function = "hatch_jupyter_builder.npm_builder"
ensured-targets = [
"imagedephi/web_static/index.html",
]
# Allow development installs even if the client build is broken
optional-editable-build = true
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
path = "client"
build_cmd = "build"
# Will only rebuild if source_dir was modified after build_dir
source_dir = "client"
build_dir = "imagedephi/web_static"
[tool.black]
line-length = 100
target-version = ["py311"]
[tool.isort]
profile = "black"
line_length = 100
force_sort_within_sections = true
combine_as_imports = true
[tool.mypy]
ignore_missing_imports = true
show_error_codes = true
mypy_path = "$MYPY_CONFIG_FILE_DIR/stubs"
exclude = [
"build/",
]
[tool.pytest.ini_options]
addopts = "--strict-config --strict-markers --showlocals --verbose"
testpaths = ["tests"]
[tool.pyright]
stubPath = "stubs"
[tool.yamlfix]
line_length = 200
preserve_quotes = true
sequence_style = "block_style"