-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
123 lines (106 loc) · 2.9 KB
/
pyproject.toml
File metadata and controls
123 lines (106 loc) · 2.9 KB
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
[tool.ruff]
line-length = 120
target-version = "py310" # Adjust to your Python version
[tool.ruff.lint]
ignore = [
"E402", # E402: Module level import not at top of file.
"E501", # E501: Line too long.
"E203", # E203: Whitespace before ':' -> conflicts with black.
"D401", # D401: First line should be in imperative mood.
"RET504", # R504: Unnecessary variable assignment before return statement.
"RET505", # R505: Unnecessary elif after return statement.
"SIM102", # SIM102: Use a single if-statement instead of nested if-statements.
"SIM117", # SIM117: Merge with statements for context managers that have same scope.
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"*/__init__.py" = ["F401"]
[tool.isort]
atomic = true
profile = "black"
line_length = 120
py_version = 310
skip_glob = ["docs/*", "logs/*",".vscode/*"]
group_by_package = true
sections = [
"FUTURE",
"STDLIB",
"THIRDPARTY",
"ISAACLABPARTY",
"FIRSTPARTY",
"ASSETS_FIRSTPARTY",
"EXTRA_FIRSTPARTY",
"LOCALFOLDER",
]
extra_standard_library = [
"numpy",
"h5py",
"open3d",
"torch",
"tensordict",
"bpy",
"matplotlib",
"gymnasium",
"gym",
"scipy",
"hid",
"yaml",
"prettytable",
"toml",
"trimesh",
"tqdm",
"psutil",
]
known_thirdparty = [
"isaacsim.core.api",
"omni.replicator.core",
"pxr",
"omni.kit.*",
"warp",
"carb",
"Semantics",
]
known_isaaclabparty = [
"isaaclab",
"isaaclab_tasks",
"isaaclab_assets",
"isaaclab_mimic",
"isaaclab_rl"
]
# Modify the following to include the package names of your first-party code
known_firstparty = "tacex"
known_assets_firstparty = "tacex_assets"
known_extra_firstparty = [
"tacex_uipc",
"tacex_tasks"
]
known_local_folder = "config"
[tool.pyright]
exclude = [
"**/__pycache__",
"**/docs",
"**/logs",
".git",
".vscode",
]
typeCheckingMode = "basic"
pythonVersion = "3.10"
pythonPlatform = "Linux"
enableTypeIgnoreComments = true
# This is required as the CI pre-commit does not download the module (i.e. numpy, torch, prettytable)
# Therefore, we have to ignore missing imports
reportMissingImports = "none"
# This is required to ignore for type checks of modules with stubs missing.
reportMissingModuleSource = "none" # -> most common: prettytable in mdp managers
reportGeneralTypeIssues = "none" # -> raises 218 errors (usage of literal MISSING in dataclasses)
reportOptionalMemberAccess = "warning" # -> raises 8 errors
reportPrivateUsage = "warning"
[tool.codespell]
skip = '*.usd,*.svg,*.png,_isaac_sim*,*.bib,*.css,*/_build'
quiet-level = 0
# the world list should always have words in lower case
ignore-words-list = "haa,slq,collapsable,buss,abd,THIRDPARTY,TOI"