-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
83 lines (76 loc) · 2.21 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "hydrax"
version = "0.0.1"
description = "Sampling-based model predictive control on GPU with JAX/MJX"
readme = "README.md"
license = {text="MIT"}
requires-python = ">=3.12.0"
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
]
dependencies = [
"jax[cuda12]==0.4.35",
"flax==0.10.0",
"pytest==8.3.3",
"ruff==0.7.1",
"pre-commit==4.0.1",
"matplotlib==3.9.2",
"mujoco==3.2.4",
"mujoco-mjx==3.2.4",
"evosax==0.1.6",
]
[tool.ruff]
line-length = 80
[tool.ruff.lint]
pydocstyle.convention = "google"
select = [
"ANN", # annotations
"N", # naming conventions
"D", # docstrings
"B", # flake8 bugbear
"E", # pycodestyle errors
"F", # Pyflakes rules
"I", # isort formatting
"PLC", # Pylint convention warnings
"PLE", # Pylint errors
"PLR", # Pylint refactor recommendations
"PLW", # Pylint warnings
]
ignore = [
"ANN003", # missing type annotation for **kwargs
"ANN101", # missing type annotation for `self` in method
"ANN202", # missing return type annotation for private function
"ANN204", # missing return type annotation for `__init__`
"ANN401", # dynamically typed expressions (typing.Any) are disallowed
"D100", # missing docstring in public module
"D104", # missing docstring in public package
"D203", # blank line before class docstring
"D211", # no blank line before class
"D212", # multi-line docstring summary at first line
"D213", # multi-line docstring summary at second line
"E731", # assigning to a `lambda` expression
"N806", # only lowercase variables in functions
"PLR0913", # too many arguments
"PLR2004", # magic value used in comparison
]
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["hydra"]
split-on-trailing-comma = false
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true
docstring-code-line-length = "dynamic"
[tool.pytest.ini_options]
testpaths = [
"tests",
]
[tool.setuptools]
packages = ["hydrax"]