Skip to content

Commit

Permalink
Add pre-commit utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
vwxyzjn committed Jan 26, 2022
1 parent 69df35c commit 0e37a51
Show file tree
Hide file tree
Showing 3 changed files with 144 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
repos:
- repo: /~https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
args:
- --skip wandb
- repo: /~https://github.com/myint/autoflake
rev: v1.4
hooks:
- id: autoflake
args:
- -r
- --exclude=wandb
- --in-place
- --remove-unused-variables
- --remove-all-unused-imports
- repo: /~https://github.com/python/black
rev: 21.7b0
hooks:
- id: black
args:
- --line-length=127
- --exclude=wandb
- repo: /~https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
- id: codespell
args:
- --ignore-words-list=nd,reacher,thist,ths
115 changes: 113 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ trueskill = "^0.4.5"
stable-baselines3 = "^1.1.0"
torch = "1.7.1"
pytest = "^6.2.5"
pre-commit = "^2.17.0"

[tool.poetry-dynamic-versioning]
enable = true
Expand Down

0 comments on commit 0e37a51

Please sign in to comment.