Added pre-commit

This commit is contained in:
Simon Alibert
2024-02-29 12:26:35 +01:00
parent afb6b8679e
commit 0e0e760e43
4 changed files with 173 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ conda activate lerobot
[Install `poetry`](https://python-poetry.org/docs/#installation) (if you don't have it already)
```
curl -sSL https://install.python-poetry.org | python3 -
curl -sSL https://install.python-poetry.org | python -
```
Install dependencies
@@ -26,6 +26,7 @@ export TMPDIR='~/tmp'
Install `diffusion_policy` #HACK
```
# from this directory
git clone https://github.com/real-stanford/diffusion_policy
cp -r diffusion_policy/diffusion_policy $(poetry env info -p)/lib/python3.10/site-packages/
```
@@ -107,11 +108,10 @@ eval_episodes=7
**Style**
```
isort lerobot && isort tests && black lerobot && black tests
pylint lerobot && pylint tests # not enforce for now
pre-commit install
```
**Tests**
```
pytest -sx tests
```
```