diff --git a/.github/ISSUE_TEMPLATE/proposal.md b/.github/ISSUE_TEMPLATE/proposal.md
index 26cea16e..1e9e2609 100644
--- a/.github/ISSUE_TEMPLATE/proposal.md
+++ b/.github/ISSUE_TEMPLATE/proposal.md
@@ -6,7 +6,7 @@ title: "[Proposal] Proposal title"
-### Proposal
+### Proposal
A clear and concise description of the proposal.
diff --git a/.github/stale.yml b/.github/stale.yml
index 52d6499f..9df56402 100644
--- a/.github/stale.yml
+++ b/.github/stale.yml
@@ -59,4 +59,4 @@ only: issues
# issues:
# exemptLabels:
-# - confirmed
\ No newline at end of file
+# - confirmed
diff --git a/.github/workflows/build-docs-dev.yml b/.github/workflows/build-docs-dev.yml
index 98a3f9ab..07b715bb 100644
--- a/.github/workflows/build-docs-dev.yml
+++ b/.github/workflows/build-docs-dev.yml
@@ -46,4 +46,4 @@ jobs:
with:
folder: _build
target-folder: main
- clean: false
\ No newline at end of file
+ clean: false
diff --git a/.github/workflows/build-docs-version.yml b/.github/workflows/build-docs-version.yml
index 2c2d8ae3..515cd0f4 100644
--- a/.github/workflows/build-docs-version.yml
+++ b/.github/workflows/build-docs-version.yml
@@ -59,4 +59,4 @@ jobs:
folder: _build
clean-exclude: |
*.*.*/
- main
\ No newline at end of file
+ main
diff --git a/.github/workflows/build-publish.yml b/.github/workflows/build-publish.yml
index e7b9daaa..1c073a87 100644
--- a/.github/workflows/build-publish.yml
+++ b/.github/workflows/build-publish.yml
@@ -54,4 +54,3 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
-
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 005b3c37..70bda381 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
+ python-version: ['3.8', '3.9', '3.10', '3.11', "3.12"]
steps:
- uses: actions/checkout@v2
- run: |
diff --git a/.github/workflows/manual-build-docs-version.yml b/.github/workflows/manual-build-docs-version.yml
index c8fa99f3..8cf0d2c4 100644
--- a/.github/workflows/manual-build-docs-version.yml
+++ b/.github/workflows/manual-build-docs-version.yml
@@ -71,4 +71,4 @@ jobs:
folder: _build
clean-exclude: |
*.*.*/
- main
\ No newline at end of file
+ main
diff --git a/.gitignore b/.gitignore
index 7b0b9053..eb9b1a7c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -41,4 +41,4 @@ vizdoom.ini
# docs
docs/envs/**/*.*
!docs/envs/**/index.md
-_build/
\ No newline at end of file
+_build/
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index bee4a8f0..aa600fdf 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,16 +1,30 @@
+# See https://pre-commit.com for more information
+# See https://pre-commit.com/hooks.html for more hooks
repos:
- - repo: https://github.com/python/black
- rev: 22.3.0
+ - repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v5.0.0
hooks:
- - id: black
+ - id: check-symlinks
+ - id: destroyed-symlinks
+ - id: trailing-whitespace
+ - id: end-of-file-fixer
+ - id: check-yaml
+ - id: check-toml
+ - id: check-ast
+ - id: check-added-large-files
+ - id: check-merge-conflict
+ - id: check-executables-have-shebangs
+ - id: check-shebang-scripts-are-executable
+ - id: detect-private-key
+ - id: debug-statements
- repo: https://github.com/codespell-project/codespell
- rev: v2.1.0
+ rev: v2.3.0
hooks:
- id: codespell
exclude: .svg
args:
- --ignore-words-list=nd,reacher,thist,ths, arry
- - repo: https://github.com/pycqa/flake8
+ - repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
@@ -21,16 +35,31 @@ repos:
- --max-line-length=456
- --show-source
- --statistics
+ - repo: https://github.com/asottile/pyupgrade
+ rev: v3.18.0
+ hooks:
+ - id: pyupgrade
+ args: ["--py38-plus"]
- repo: https://github.com/PyCQA/isort
- rev: 5.12.0
+ rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black"]
- - repo: https://github.com/asottile/pyupgrade
- rev: v2.32.0
+ - repo: https://github.com/python/black
+ rev: 24.10.0
hooks:
- - id: pyupgrade
- args: ["--py38-plus"]
+ - id: black
+ - repo: https://github.com/pycqa/pydocstyle
+ rev: 6.3.0
+ hooks:
+ - id: pydocstyle
+ exclude: ^(tests/envs/hand)|(tests/test_envs.py)|(tests/__init__.py)|(tests/utils.py)|(tests/envs/__init__.py)|(docs)|(gymnasium_robotics/utils)|(gymnasium_robotics/envs/fetch)|(gymnasium_robotics/envs/shadow_dexterous_hand)|(gymnasium_robotics/envs/maze)|(gymnasium_robotics/envs/adroit_hand)|(gymnasium_robotics/envs/franka_kitchen)
+ args:
+ - --convention=google
+ - --add-ignore=D100
+ - --source
+ - --explain
+ additional_dependencies: ["tomli"]
- repo: local
hooks:
- id: pyright
@@ -42,11 +71,3 @@ repos:
additional_dependencies: ["pyright@1.1.347"]
args:
- --project=pyproject.toml
- - repo: https://github.com/pycqa/pydocstyle
- rev: 6.1.1
- hooks:
- - id: pydocstyle
- exclude: ^(tests/envs/hand)|(tests/test_envs.py)|(tests/__init__.py)|(tests/utils.py)|(tests/envs/__init__.py)|(docs)|(gymnasium_robotics/utils)|(gymnasium_robotics/envs/fetch)|(gymnasium_robotics/envs/shadow_dexterous_hand)|(gymnasium_robotics/envs/maze)|(gymnasium_robotics/envs/adroit_hand)|(gymnasium_robotics/envs/franka_kitchen)
- args:
- - --convention=google
- - --add-ignore=D100
diff --git a/CODE_OF_CONDUCT.rst b/CODE_OF_CONDUCT.rst
index e78793c7..06942265 100644
--- a/CODE_OF_CONDUCT.rst
+++ b/CODE_OF_CONDUCT.rst
@@ -65,5 +65,3 @@ Attribution
-----------
This Code of Conduct is adapted from `Python's Code of Conduct
-