-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (80 loc) · 1.81 KB
/
pyproject.toml
File metadata and controls
92 lines (80 loc) · 1.81 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "spider"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"numpy",
"torch",
"loguru",
"tyro",
"loop-rate-limiters",
"hydra-core",
"matplotlib",
"imageio[ffmpeg]",
"mediapy",
"opencv-python",
"newton[examples] @ git+https://github.com/newton-physics/newton.git",
"rerun-sdk==0.26.2",
"viser",
"ipdb",
"pymeshlab",
"open3d",
"ipykernel",
"huggingface_hub",
"gspread",
"google-auth",
"mink",
]
[project.scripts]
spider-mjwp = "examples.run_mjwp:main"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["spider"]
[project.optional-dependencies]
dev = [
"ruff>=0.13.2",
]
[tool.ruff]
# Same as Black.
line-length = 88
indent-width = 4
# Assume Python 3.12+
target-version = "py312"
[tool.ruff.lint]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
# Plus Google style conventions
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"N", # pep8-naming
"D", # pydocstyle (Google style docstrings)
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
]
ignore = [
"E501", # Line too long (handled by formatter)
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D107", # Missing docstring in `__init__`
]
[tool.ruff.format]
# Use Google style formatting
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint.pydocstyle]
# Use Google-style docstrings
convention = "google"
[tool.ruff.lint.isort]
known-first-party = ["spider"]