Last active
May 22, 2023 13:19
-
-
Save Syzygianinfern0/57d9493ba55a64df24e11f26049dbd07 to your computer and use it in GitHub Desktop.
My personal pre commit config!
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
exclude: "cliport/environments/assets/" | |
repos: | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v4.4.0 | |
hooks: | |
- id: trailing-whitespace | |
- id: end-of-file-fixer | |
- id: check-yaml | |
- id: check-added-large-files | |
args: ["--maxkb=10240"] # 10MB | |
- id: check-merge-conflict | |
- repo: https://github.com/psf/black | |
rev: 23.3.0 | |
hooks: | |
- id: black | |
args: ["--line-length=120"] | |
- repo: https://github.com/pycqa/isort | |
rev: 5.12.0 | |
hooks: | |
- id: isort | |
name: isort (python) | |
args: ["--profile", "black", "--filter-files"] | |
- repo: local | |
hooks: | |
- id: custom-bash-command | |
name: Conda env export | |
entry: bash -c 'conda env export > environment_$CONDA_DEFAULT_ENV.yml' | |
language: system | |
pass_filenames: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment