-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
145 lines (123 loc) · 3.31 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 79
[tool.pytest.ini_options]
python_files = "*_test.py"
[tool.isort]
profile = "black"
line_length = 79
[tool.pyright]
include = ["vis4d"]
[tool.coverage]
[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma
'pragma: no cover',
# Don't complain if tests don't hit defensive assertion code
'raise NotImplementedError',
'raise ValueError',
'raise ImportError',
'raise AttributeError',
'raise FileNotFoundError',
# Don't complain about overloads
'@overload',
]
omit = [
# Omit files related to distributed setting
"vis4d/common/slurm.py",
"vis4d/common/util.py",
"vis4d/common/distributed.py",
"vis4d/engine/run.py",
"vis4d/engine/experiment.py",
"vis4d/engine/flag.py",
"vis4d/pl/run.py",
"vis4d/pl/__main__.py",
"vis4d/__main__.py",
"vis4d/zoo/run.py",
]
[tool.flake8]
# Ignore only the import related errors because isort handles them.
ignore = "I100, I201"
[tool.mypy]
strict = true
warn_return_any = false
allow_untyped_calls = true
exclude = [
"_test\\.py$",
]
# Disallow using Any
disallow_any_explicit = true
disallow_any_generics = true
plugins = ["numpy.typing.mypy_plugin"]
[[tool.mypy.overrides]]
module = [
"plyfile.*",
"tensorflow.*",
"skimage.*",
"PIL.*",
"tqdm.*",
"pycocotools.*",
"matplotlib.*",
"h5py.*",
"bdd100k.*",
"devtools.*",
"nuscenes.*",
"dash.*",
"dash_core_components.*",
"dash_html_components.*",
"plotly.*",
"pandas.*",
"cv2.*",
"cloudpickle.*",
"scalabel.*",
"scipy.spatial.transform",
"scipy.spatial.distance",
"appdirs.*",
"open3d.*",
"ml_collections.*",
"lightning.*",
"absl.*",
"terminaltables.*",
"timm.*",
"vis4d_cuda_ops.*",
"fvcore.*",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
"torch.*",
"torchvision.*"
]
follow_imports = "normal"
follow_imports_for_stubs = true
ignore_missing_imports = true
[project]
name = "vis4d"
version = "0.1.2"
authors = [{name = "VIS @ ETH", email = "[email protected]"}]
description = "Vis4D Python package for Visual 4D scene understanding"
readme = "README.md"
license = {text = "Apache 2.0"}
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
dynamic = ["dependencies"]
[tool.setuptools.dynamic]
dependencies = {file = ["requirements/install.txt"]}
[tool.setuptools.package-data]
"*" = ["py.typed"]
[tool.setuptools.packages.find]
include = ["vis4d*"]
[project.urls]
"Documentation" = "https://docs.vis.xyz/4d"
"Source" = "https://github.com/syscv/vis4d"
"Tracker" = "https://github.com/syscv/"
[project.scripts]
vis4d = "vis4d.engine.run:entrypoint"
vis4d-pl = "vis4d.pl.run:entrypoint"
vis4d-zoo = "vis4d.zoo.run:entrypoint"