-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathpyproject.toml
153 lines (142 loc) · 3.36 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
146
147
148
149
150
151
152
153
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "playground"
version = "0.0.3"
readme = "README.md"
authors = [
{name = "Google DeepMind", email = "[email protected]"},
]
requires-python = ">=3.10"
dynamic = ["description"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Robot Framework :: Library",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
]
dependencies = [
"etils",
"flax",
"jax",
"lxml",
"ml_collections",
"mujoco-mjx>=3.2.7",
"mujoco>=3.2.7",
"tqdm",
"brax>=0.12.1",
]
keywords = ["mjx", "mujoco", "dm_control"]
[project.optional-dependencies]
test = [
"absl-py",
"pytest",
"pytest-xdist",
"dm_control",
]
notebooks = [
"matplotlib",
"mediapy",
]
dev = [
"playground[test]",
"mypy",
"pyink",
"pytype",
"ruff",
"pre-commit",
"pylint",
"pytest-xdist",
]
all = [
"playground[dev]",
"playground[notebooks]",
]
[tool.hatch.build.targets.wheel]
packages = ["mujoco_playground"]
[tool.ruff]
lint.select = [
"E", # pycodestyle errors.
"F", # Pyflakes rules.
"PLC", # Pylint convention warnings.
"PLE", # Pylint errors.
"PLR", # Pylint refactor recommendations.
"PLW", # Pylint warnings.
"I" # Import sorting.
]
lint.ignore = [
"E741", # Ambiguous variable name. (l, O, or I)
"E501", # Line too long.
"PLR2004", # Magic value used in comparison.
"PLR0915", # Too many statements.
"PLR0913", # Too many arguments.
"PLC0414", # Import alias does not rename variable. (this is used for exporting names)
"PLC1901", # Use falsey strings.
"PLR5501", # Use `elif` instead of `else if`.
"PLR0911", # Too many return statements.
"PLR0912", # Too many branches.
"PLW0603", # Global statement updates are discouraged.
"PLW2901" # For loop variable overwritten.
]
exclude = [
"mujoco_menagerie/",
]
[tool.mypy]
python_version = "3.12"
ignore_missing_imports = true
warn_unused_configs = true
exclude = ["scripts/", "mujoco_menagerie/"]
[tool.pytest.ini_options]
addopts = [
"--ignore=mujoco_menagerie",
]
testpaths = [
"tests",
]
[tool.isort]
force_single_line = true
force_sort_within_sections = true
lexicographical = true
single_line_exclusions = ["typing"]
order_by_type = false
group_by_package = true
line_length = 120
use_parentheses = true
multi_line_output = 3
include_trailing_comma = true
skip = ["mujoco_menagerie", ".pytype"]
skip_glob = ["**/*.ipynb"]
[tool.pyink]
line-length = 80
unstable = true
pyink-indentation = 2
pyink-use-majority-quotes = true
extend-exclude = '''(
mujoco_menagerie
| .ipynb$
)'''
[pytype]
inputs = "."
exclude = [
"**/*_test.py",
"**/test_*.py",
"mujoco_menagerie/**",
"mujoco_playground/_src/wrapper_torch.py",
"mujoco_playground/learning/getup_rl_games.py"
]
output = ".pytype"
report_errors = true
[tool.pylint]
ignore-paths = 'mujoco_playground/experimental/**$'
[tool.hatch.build]
include = [
"mujoco_playground/__init__.py",
"mujoco_playground/_src/**/*",
"mujoco_playground/config/**/*",
]