-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
173 lines (160 loc) · 4.11 KB
/
Copy pathpyproject.toml
File metadata and controls
173 lines (160 loc) · 4.11 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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
[tool.black]
line-length = 100
[tool.isort]
profile = "black"
[tool.mypy]
python_version = "3.10"
namespace_packages = true
incremental = false
cache_dir = ""
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = false
allow_redefinition = true
disallow_untyped_calls = false
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = false
strict_optional = true
strict_equality = true
explicit_package_bases = true
follow_imports = "skip"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
"matplotlib.*",
"mpl_toolkits.*",
"gym.*",
"pytest_mock.*",
"numpy.*",
"dm_env.*",
"tree.*",
"pytest.*",
"IPython.*",
"optax.*",
"tqdm.*",
"rlax.*",
"neptune.*",
"tensorboardX.*",
"scipy.*",
"hydra.*",
"omegaconf.*",
]
[tool.flake8]
select = ["A","B","C","D","E","F","G","I","N","T","W"] # Specify list of error codes to report.
exclude = [
".tox",
".git",
"__pycache__",
"build",
"dist",
"proto/*",
"*.pyc",
"*.egg-info",
".cache",
".eggs",
]
max-line-length=120
max-cognitive-complexity=20
import-order-style = "google"
application-import-names = "stoa"
doctests = true
docstring-convention = "google"
per-file-ignores = "__init__.py:F401"
ignore = [
"A002", # Argument shadowing a Python builtin.
"A003", # Class attribute shadowing a Python builtin.
"D107", # Do not require docstrings for __init__.
"E266", # Do not require block comments to only have a single leading #.
"E731", # Do not assign a lambda expression, use a def.
"W503", # Line break before binary operator (not compatible with black).
"B017", # assertRaises(Exception): or pytest.raises(Exception) should be considered evil.
"E203", # black and flake8 disagree on whitespace before ':'.
"B009", # Do not call getattr with a constant attribute value, it is not any safer than normal property access.
]
[tool.uv]
package = true
[tool.setuptools.packages.find]
include = ['stoa*']
[tool.setuptools.dynamic]
version = {attr = "stoa.__version__"}
[tool.uv.sources]
xminigrid = { git = "https://github.com/corl-team/xland-minigrid.git", rev = "main" }
gymnax = { git = " git+https://github.com/RobertTLange/gymnax.git", rev = "main" }
[project]
name = "stoa-env"
readme = "README.md"
description = "Single-Agent Reinforcement Learning with JAX"
authors = [
{name = "Edan Toledo"},
]
dynamic = ["version"]
license = {file = "LICENSE"}
requires-python = ">=3.10"
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: MIT License",
]
dependencies = [
"chex>=0.1.89",
"flax>=0.10.5",
"jax>=0.4.25",
"jaxlib>=0.5.3",
"numpy>=1.26.4",
]
[project.optional-dependencies]
brax = ["brax>=0.9.0"]
gymnax = ["gymnax>=0.0.6", "gymnasium>=1.1.1"]
jumanji = ["jumanji>=1.1.1"]
kinetix = ["kinetix-env"]
navix = ["navix>=0.7.0"]
pgx = ["pgx>=2.6.0"]
xminigrid = ["xminigrid"]
all = [
"stoa-env[brax]",
"stoa-env[gymnax]",
"stoa-env[jumanji]",
"stoa-env[kinetix]",
"stoa-env[navix]",
"stoa-env[pgx]",
"stoa-env[xminigrid]",
]
dev = [
"black",
"coverage",
"flake8",
"importlib-metadata",
"isort",
"livereload",
"mkdocs",
"mkdocs-git-revision-date-plugin",
"mkdocs-include-markdown-plugin",
"mkdocs-material",
"mkdocs-mermaid2-plugin",
"mkdocstrings",
"mknotebooks",
"mypy",
"nbmake",
"pre-commit",
"promise",
"pymdown-extensions",
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-parallel",
"pytest-xdist",
"pytype",
"testfixtures",
]
[project.urls]
"Homepage" = "https://github.com/EdanToledo/Stoa"
"Bug Tracker" = "https://github.com/EdanToledo/Stoa/issues"