-
-
Notifications
You must be signed in to change notification settings - Fork 617
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgraded Gymnasium to 1.0.0 and NumPy to 2.0.0+ (#453)
- Loading branch information
1 parent
a6cfc0e
commit 0dba116
Showing
14 changed files
with
98 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
# https://pre-commit.com | ||
# This GitHub Action assumes that the repo contains a valid .pre-commit-config.yaml file. | ||
name: pre-commit | ||
on: [pull_request, push] | ||
name: Run pre-commit | ||
on: | ||
pull_request: | ||
push: | ||
branches: [master] | ||
|
||
permissions: | ||
contents: read | ||
contents: read # to fetch code (actions/checkout) | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
- run: pip install pre-commit | ||
- run: pre-commit --version | ||
- run: pre-commit install | ||
- run: pre-commit run --all-files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ authors = [{ name = "Farama Foundation", email = "[email protected]" }] | |
license = { text = "MIT License" } | ||
keywords = ["Memory, Environment, Agent, RL, Gymnasium"] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", # change to `5 - Production/Stable` when ready | ||
"Development Status :: 4 - Beta", # change to `5 - Production/Stable` when ready | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
|
@@ -24,33 +24,19 @@ classifiers = [ | |
'Intended Audience :: Science/Research', | ||
'Topic :: Scientific/Engineering :: Artificial Intelligence', | ||
] | ||
dependencies = [ | ||
"numpy>=1.18.0", | ||
"gymnasium>=0.28.1", | ||
"pygame>=2.4.0", | ||
] | ||
dependencies = ["numpy>=1.18.0", "gymnasium>=0.28.1", "pygame>=2.4.0"] | ||
dynamic = ["version"] | ||
|
||
[project.optional-dependencies] | ||
testing = [ | ||
"pytest>=7.0.1", | ||
"pytest-mock>=3.10.0", | ||
"matplotlib>=3.0" | ||
] | ||
wfc = [ | ||
"networkx", | ||
"imageio>=2.31.1", | ||
] | ||
testing = ["pytest>=7.0.1", "pytest-mock>=3.10.0", "matplotlib>=3.0"] | ||
wfc = ["networkx", "imageio>=2.31.1"] | ||
|
||
[project.urls] | ||
Homepage = "https://farama.org" | ||
Repository = "https://minigrid.farama.org/" | ||
Documentation = "https://minigrid.farama.org/" | ||
"Bug Report" = "https://github.com/Farama-Foundation/Minigrid/issues" | ||
|
||
[project.entry-points."gymnasium.envs"] | ||
__root__ = "minigrid.__init__:register_minigrid_envs" | ||
|
||
[tool.setuptools] | ||
include-package-data = true | ||
|
||
|
@@ -60,24 +46,18 @@ include = ["minigrid*"] | |
# Linters and Test tools ####################################################### | ||
|
||
[tool.black] | ||
safe = true | ||
|
||
[tool.isort] | ||
atomic = true | ||
profile = "black" | ||
append_only = true | ||
src_paths = ["minigrid", "tests"] | ||
add_imports = [ "from __future__ import annotations" ] | ||
add_imports = ["from __future__ import annotations"] | ||
|
||
[tool.pyright] | ||
include = [ | ||
"minigrid/**", | ||
] | ||
include = ["minigrid/**"] | ||
|
||
exclude = [ | ||
"**/node_modules", | ||
"**/__pycache__", | ||
] | ||
exclude = ["**/node_modules", "**/__pycache__"] | ||
|
||
strict = [] | ||
|
||
|
@@ -98,8 +78,10 @@ reportPrivateUsage = "warning" | |
reportUntypedFunctionDecorator = "none" | ||
reportMissingTypeStubs = false | ||
reportUnboundVariable = "warning" | ||
reportGeneralTypeIssues ="none" | ||
reportGeneralTypeIssues = "none" | ||
reportPrivateImportUsage = "none" | ||
|
||
[tool.pytest.ini_options] | ||
filterwarnings = ['ignore:.*step API.*:DeprecationWarning'] # TODO: to be removed when old step API is removed | ||
filterwarnings = [ | ||
'ignore:.*step API.*:DeprecationWarning', | ||
] # TODO: to be removed when old step API is removed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
numpy>=1.18.0 | ||
gymnasium>=0.26 | ||
numpy>=2.0.0 | ||
gymnasium>=1.0.0 | ||
pygame>=2.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.