-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
121 lines (109 loc) · 2.41 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "zaku"
version = "0.0.15"
description = "Zaku Task Queue is for distributed ML-workloads."
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.7"
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
]
dependencies = [
"params-proto>=2.11.16",
"pillow",
"msgpack",
"numpy>=1.21", # because we require numpy.typing.NDArray
"websockets",
]
[project.optional-dependencies]
# add the cors package, not needed in pyScript
all = [
"asyncio",
"aiohttp",
"aiohttp-cors",
"killport",
"redis",
]
examples = [
"aiohttp",
"aiohttp-cors",
"cmx",
"functional_notations",
"killport",
"ml_logger",
"opencv-python",
"open3d>=0.15.0,<0.16.0",
"redis",
"trimesh",
]
dev = [
"restructuredtext-lint",
"twine",
"aiohttp",
"aiohttp-cors",
"black==22.3.0",
"killport",
"redis",
"pylint==2.13.4",
"pytest==7.1.2",
"sphinx==7.1.2",
"sphinx-autobuild",
"pytest-asyncio",
"pytest-dependency",
"furo",
"sphinx_copybutton",
"myst_parser",
# these are very optional, but needed for the doc site
"trimesh",
"tqdm",
]
[project.scripts]
# Note, add entrypoint name to scripts/completions/install.py to include CLI completion
zaku = "zaku.server:entry_point"
[tool.setuptools.packages.find]
include = ["zaku*"]
[tool.setuptools.package-data]
"*" = ["*.json"]
# black
[tool.black]
line-length = 120
# pylint
[tool.pylint.messages_control]
max-line-length = 120
generated-members = []
good-names-rgxs = "^[_a-zA-Z][_a-z0-9]?$"
ignore-paths = []
jobs = 0
ignored-classes = ["TensorDataclass"]
disable = [
"duplicate-code",
"fixme",
"logging-fstring-interpolation",
"too-many-arguments",
"too-many-branches",
"too-many-instance-attributes",
"too-many-locals",
"unnecessary-ellipsis",
]
#pytest
#[tool.pytest.ini_options]
#addopts = "-n=4 --typeguard-packages=zaku --disable-warnings"
#testpaths = [
# "tests",
#]
# pyright
[tool.pyright]
include = ["zaku"]
exclude = ["**/node_modules", "**/__pycache__", ]
#ignore = ["nerf_zaku"]
defineConstant = { DEBUG = true }
reportMissingImports = true
reportMissingTypeStubs = false
reportPrivateImportUsage = false
reportUndefinedVariable = false
#pythonVersion = "3.8"
#pythonPlatform = "Linux"