forked from codekansas/usa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
77 lines (55 loc) · 1.32 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
[tool.black]
line-length = 120
target-version = ["py310"]
include = '\.pyi?$'
[tool.pytest.ini_options]
addopts = "-rx -rf -x -q --full-trace"
testpaths = ["tests"]
markers = [
"slow: Marks test as being slow",
"has_gpu: Marks test as requiring a GPU to run",
"has_mps: Marks test as requiring an MPS device to run",
]
[tool.mypy]
pretty = true
show_column_numbers = true
show_error_context = true
show_error_codes = true
show_traceback = true
disallow_untyped_defs = true
strict_equality = true
allow_redefinition = true
warn_unused_ignores = true
warn_redundant_casts = true
incremental = true
namespace_packages = false
# For TorchScript stuff.
disable_error_code = ["attr-defined"]
[[tool.mypy.overrides]]
module = [
"cv2.*",
"ffmpeg.*",
"liblzfse.*",
"matplotlib.*",
"open3d.*",
"pybullet.*",
"quaternion.*",
"seaborn.*",
"torchvision.*",
]
ignore_missing_imports = true
[tool.isort]
profile = "black"
[tool.ruff]
select = ["E", "F", "I", "W"]
ignore = ["E712", "E731"]
line-length = 120
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
target-version = "py310"
[tool.ruff.per-file-ignores]
"__init__.py" = ["E402", "F401", "F403", "F811"]
[tool.ruff.mccabe]
max-complexity = 10
[tool.ruff.isort]
known-first-party = ["usa", "tests"]
combine-as-imports = true