Skip to content

Instantly share code, notes, and snippets.

@Syzygianinfern0
Last active May 22, 2023 13:19
Show Gist options
  • Save Syzygianinfern0/57d9493ba55a64df24e11f26049dbd07 to your computer and use it in GitHub Desktop.
Save Syzygianinfern0/57d9493ba55a64df24e11f26049dbd07 to your computer and use it in GitHub Desktop.
My personal pre commit config!
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