-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathpyproject.toml
129 lines (113 loc) · 4.08 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
[build-system]
requires = ["setuptools >= 61.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "mo-gymnasium"
description="A standard API for MORL and a diverse set of reference environments."
readme = "README.md"
requires-python = ">= 3.8"
authors = [{ name = "Farama Foundation", email = "[email protected]" }]
license = { text = "MIT License" }
keywords = ["Reinforcement Learning", "Multi-Objective", "RL", "AI", "Gymnasium"]
classifiers = [
"Development Status :: 4 - Beta", # change to `5 - Production/Stable` when ready
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
]
dependencies = [
"gymnasium >=1.0.0",
"numpy >=1.21.0,<2.0",
"pygame >=2.1.3",
"scipy >=1.7.3",
]
dynamic = ["version"]
[project.optional-dependencies]
# Update dependencies in `all` if any are added or removed
mario = ["nes-py", "gym-super-mario-bros"]
minecart = ["scipy >=1.7.3 "]
mujoco = ["mujoco >=2.2.0", "imageio >=2.14.1"]
highway = ["highway-env >=1.8"]
box2d = ["box2d-py ==2.3.5", "pygame >=2.1.3", "swig ==4.*"]
all = [
# All dependencies above except accept-rom-license
# NOTE: No need to manually remove the duplicates, setuptools automatically does that.
# Mario
"nes-py",
"gym-super-mario-bros",
# minecart
"scipy >=1.7.3",
# mujoco
"imageio >=2.14.1",
"mujoco >=2.2.0",
# highway
"highway-env >= 1.9.1",
# box2d
"box2d-py ==2.3.5",
"pygame >=2.1.3",
"swig ==4.*",
]
testing = ["pytest ==7.1.3"]
[project.urls]
Homepage = "https://mo-gymnasium.farama.org"
Repository = "https://github.com/Farama-Foundation/MO-Gymnasium"
Documentation = "https://mo-gymnasium.farama.org"
"Bug Report" = "https://github.com/Farama-Foundation/MO-Gymnasium/issues"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
include = ["mo_gymnasium", "mo_gymnasium.*"]
[tool.setuptools.package-data]
mo_gymnasium = [
"**/*.json",
"**/assets/*",
"py.typed"
]
# Linters and Test tools #######################################################
[tool.black]
line-length = 127
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
include = '\.pyi?$'
[tool.isort]
atomic = true
profile = "black"
src_paths = ["mo_gymnasium", "tests", "docs/scripts"]
extra_standard_library = ["typing_extensions"]
indent = 4
lines_after_imports = 2
multi_line_output = 3
[tool.pyright]
include = ["mo_gymnasium/**", "tests/**"]
exclude = ["**/node_modules", "**/__pycache__"]
strict = []
typeCheckingMode = "basic"
pythonVersion = "3.8"
pythonPlatform = "All"
typeshedPath = "typeshed"
enableTypeIgnoreComments = true
# This is required as the CI pre-commit does not download the module (i.e. numpy, pygame)
# Therefore, we have to ignore missing imports
reportMissingImports = "none"
# Some modules are missing type stubs, which is an issue when running pyright locally
reportMissingTypeStubs = false
# For warning and error, will raise an error when
reportInvalidTypeVarUse = "none"
# reportUnknownMemberType = "warning" # -> raises warnings
# reportUnknownParameterType = "warning" # -> raises warnings
# reportUnknownVariableType = "warning" # -> raises warnings
# reportUnknownArgumentType = "warning" # -> raises warnings
reportGeneralTypeIssues = "none" # -> commented out raises 489 errors
reportUntypedFunctionDecorator = "none" # -> pytest.mark.parameterize issues
reportOptionalMemberAccess = "none" # -> commented out raises warnings
reportPrivateImportUsage = "warning" # -> this raises warnings because we use not exported modules from gym (wrappers)
reportPrivateUsage = "warning"
reportUnboundVariable = "warning"
[tool.pytest.ini_options]
filterwarnings = ['ignore:.*The environment .* is out of date.*']
# filterwarnings = ['ignore:.*step API.*:DeprecationWarning']