-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from rail-berkeley/add-linting
good catch, lets do that
- Loading branch information
Showing
13 changed files
with
189 additions
and
72 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,14 @@ | ||
[flake8] | ||
exclude = .git | ||
max-line-length = 88 | ||
select = E,F,W,C | ||
ignore=W503, | ||
E203, | ||
E731, | ||
E722, | ||
F401, | ||
F841, | ||
E402, | ||
E741, | ||
E501, | ||
C406, |
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,14 @@ | ||
name: pre-commit | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: pre-commit/[email protected] |
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,7 @@ | ||
# Ignore Python files | ||
*.pyc | ||
__pycache__/ | ||
*.pyo | ||
|
||
# MUJOCO_LOG.TXT | ||
MUJOCO_LOG.TXT |
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,34 @@ | ||
default_language_version: | ||
python: python3.10 | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.3.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: check-ast | ||
- id: check-added-large-files | ||
- id: check-case-conflict | ||
- id: check-merge-conflict | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: detect-private-key | ||
- id: debug-statements | ||
- repo: https://github.com/psf/black | ||
rev: 22.10.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.1.0 | ||
hooks: | ||
- id: flake8 | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/srstevenson/nb-clean | ||
rev: 3.1.0 | ||
hooks: | ||
- id: nb-clean | ||
args: | ||
- --remove-empty-cells | ||
- --preserve-cell-outputs |
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,5 +1,7 @@ | ||
# SERL: A Software Suite for Sample-Efficient Robotic Reinforcement Learning | ||
|
||
![](https://github.com/rail-berkeley/serl/workflows/pre-commit/badge.svg) | ||
|
||
## Installation | ||
- Conda Environment: | ||
- create an environment with `conda create -n serl_dev python=3.10` | ||
- create an environment with `conda create -n serl_dev python=3.10` |
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 @@ | ||
from franka_sim.mujoco_gym_env import MujocoGymEnv, GymRenderingSpec | ||
from franka_sim.mujoco_gym_env import GymRenderingSpec, MujocoGymEnv | ||
|
||
__all__ = [ | ||
"MujocoGymEnv", | ||
"GymRenderingSpec", | ||
] | ||
|
||
from gymnasium.envs.registration import register | ||
|
||
register( | ||
id='PandaPickCube-v0', | ||
entry_point='franka_sim.envs:PandaPickCubeGymEnv', | ||
id="PandaPickCube-v0", | ||
entry_point="franka_sim.envs:PandaPickCubeGymEnv", | ||
max_episode_steps=100, | ||
) | ||
register( | ||
id='PandaPickCubeVision-v0', | ||
entry_point='franka_sim.envs:PandaPickCubeGymEnv', | ||
id="PandaPickCubeVision-v0", | ||
entry_point="franka_sim.envs:PandaPickCubeGymEnv", | ||
max_episode_steps=100, | ||
kwargs={'image_obs': True}, | ||
) | ||
kwargs={"image_obs": True}, | ||
) |
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
Oops, something went wrong.