-
Notifications
You must be signed in to change notification settings - Fork 603
Expand file tree
/
Copy pathpyproject.toml
More file actions
159 lines (140 loc) · 3.9 KB
/
Copy pathpyproject.toml
File metadata and controls
159 lines (140 loc) · 3.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
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
154
155
156
157
158
159
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "rl_zoo3"
description = "A Training Framework for Stable Baselines3 Reinforcement Learning Agents"
readme = "README.md"
authors = [{ name = "Antonin Raffin", email = "antonin.raffin@dlr.de" }]
license = "MIT"
license-files = ["LICENSE"]
keywords = [
"reinforcement-learning-algorithms",
"reinforcement-learning",
"machine-learning",
"gymnasium",
"openai",
"stable",
"baselines",
"sb3",
"toolbox",
"python",
"data-science",
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.10"
dependencies = [
"sb3_contrib>=2.9.0,<3.0",
"gymnasium>=0.29.1,<2.0",
"huggingface_sb3>=3.0,<4.0",
"tqdm",
"rich",
"optuna>=3.0",
"pyyaml>=5.1",
"pytablewriter~=1.2",
"shimmy~=2.0",
]
dynamic = ["version"]
[tool.setuptools.dynamic]
version = { attr = "rl_zoo3._version.__version__" }
[project.optional-dependencies]
# NOTE: rliable~=1.2.0 required arch<8.0, which is not compatible with pandas 3.x
plots = ["seaborn", "rliable~=1.2.0", "scipy~=1.10", "pandas>=2.2,<3"]
tests = [
# for MuJoCo envs v4:
"mujoco>=2.3,<4",
# install parking-env to test HER
"highway-env>=1.10.1,<2.0",
]
extras = [
"gym==0.26.2",
"stable-baselines3[extra,tests,docs]>=2.9.0,<3.0",
"pybullet_envs_gymnasium>=0.6.0",
# minigrid
"cloudpickle>=2.2.1",
# Optuna auto
"optunahub>=0.2.0",
# optuna plots:
"plotly",
# need to upgrade to gymnasium:
# panda-gym~=3.0.1
"wandb",
"moviepy>=1.0.0",
# box2d is handled same as Gymnasium's pyproject.toml
"box2d==2.3.10; python_version < '3.14'",
"box2d-py==2.3.8; python_version >= '3.14'",
"swig==4.*; python_version >= '3.14'",
]
[project.urls]
Code = "https://github.com/DLR-RM/rl-baselines3-zoo"
Documentation = "https://rl-baselines3-zoo.readthedocs.io/en/master/"
Changelog = "https://github.com/DLR-RM/rl-baselines3-zoo/blob/master/CHANGELOG.md"
Stable-Baselines3 = "https://github.com/DLR-RM/stable-baselines3"
RL-Zoo = "https://github.com/DLR-RM/rl-baselines3-zoo"
SBX = "https://github.com/araffin/sbx"
[project.scripts]
rl_zoo3 = "rl_zoo3.cli:main"
[tool.setuptools]
packages = ["rl_zoo3", "rl_zoo3.plots", "rl_zoo3.hyperparams"]
[tool.setuptools.package-dir]
"rl_zoo3.hyperparams" = "hyperparams"
[tool.setuptools.package-data]
rl_zoo3 = ["py.typed", "version.txt"]
"rl_zoo3.hyperparams" = ["*.yml"]
[tool.ruff]
# Same as Black.
line-length = 127
# Assume Python 3.10
target-version = "py310"
[tool.ruff.lint]
# See https://beta.ruff.rs/docs/rules/
select = ["E", "F", "B", "UP", "C90", "RUF"]
# Ignore explicit stacklevel`
ignore = ["B028"]
[tool.ruff.lint.per-file-ignores]
"./rl_zoo3/import_envs.py" = ["F401"]
# "./rl_zoo3/plots/plot_train.py"= ["E501"]
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 15
[tool.black]
line-length = 127
target-version = ["py310"]
[tool.mypy]
ignore_missing_imports = true
follow_imports = "silent"
show_error_codes = true
exclude = """(?x)(
tests/dummy_env/*$
)"""
[tool.pytest.ini_options]
# Deterministic ordering for tests; useful for pytest-xdist.
# env = [
# "PYTHONHASHSEED=0"
# ]
filterwarnings = [
# Tensorboard warnings
"ignore::DeprecationWarning:tensorboard",
# Gym warnings
"ignore::UserWarning:gym",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')"
]
[tool.coverage.run]
disable_warnings = ["couldnt-parse"]
branch = false
omit = [
"tests/*",
"rl_zoo3/plots/*",
"rl_zoo3/push_to_hub.py",
"scripts/*",
]
[tool.coverage.report]
exclude_lines = [ "pragma: no cover", "raise NotImplementedError()", "if typing.TYPE_CHECKING:"]