-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add pyproject, pre commit * Change usage of test to tests * Change usages of [dev] to [testing] to comply with other farama projects * Run and fix pre-commit issues * Add new workflows for precommit and mac/linux tests from pettingzoo * Clean up CONTRIBUTING.md pre-commit info * Try adding pyproject.toml to dockerfile as well * Remove pyproject.toml changes * Add pyright config (can be moved to pyproject in future * Remove pyright cause it takes a long time to execute and has everything disabled --------- Co-authored-by: Mark Towers <[email protected]>
- Loading branch information
1 parent
cb871e5
commit fa575a9
Showing
346 changed files
with
15,637 additions
and
14,167 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# 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: | ||
branches: [master] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
repos: | ||
- repo: https://github.com/python/black | ||
rev: 23.3.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.2.4 | ||
hooks: | ||
- id: codespell | ||
args: | ||
- --skip=*.css,*.js,*.map,*.scss,*.svg,*.ipynb | ||
- --ignore-words-list=magent | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
args: | ||
- '--per-file-ignores=*/__init__.py:F401' | ||
- --extend-ignore=E203,W605,F841,E731,E741,F401 # TODO: fix some of these | ||
- --max-complexity=205 | ||
- --max-line-length=300 | ||
- --show-source | ||
- --statistics | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
args: ["--profile", "black"] | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.3.1 | ||
hooks: | ||
- id: pyupgrade | ||
args: ["--py37-plus"] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: mixed-line-ending | ||
args: ["--fix=lf"] | ||
- repo: https://github.com/pycqa/pydocstyle | ||
rev: 6.3.0 | ||
hooks: | ||
- id: pydocstyle | ||
args: | ||
- --source | ||
- --explain | ||
- --convention=google | ||
- --count | ||
# TODO: Remove ignoring rules D101, D102, D103, D105 | ||
- --add-ignore=D100,D107,D101,D102,D103,D105 | ||
exclude: "__init__.py$|^metaworld.tests|^docs" | ||
additional_dependencies: ["tomli"] |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from metaworld.envs.mujoco.env_dict import (ALL_V2_ENVIRONMENTS_GOAL_HIDDEN, | ||
ALL_V2_ENVIRONMENTS_GOAL_OBSERVABLE | ||
) | ||
from metaworld.envs.mujoco.env_dict import ( | ||
ALL_V2_ENVIRONMENTS_GOAL_HIDDEN, | ||
ALL_V2_ENVIRONMENTS_GOAL_OBSERVABLE, | ||
) | ||
|
||
__all__ = ['ALL_V2_ENVIRONMENTS_GOAL_HIDDEN', | ||
'ALL_V2_ENVIRONMENTS_GOAL_OBSERVABLE'] | ||
__all__ = ["ALL_V2_ENVIRONMENTS_GOAL_HIDDEN", "ALL_V2_ENVIRONMENTS_GOAL_OBSERVABLE"] |
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.