Skip to content

Instantly share code, notes, and snippets.

@ZekunZh
Created June 25, 2021 07:03
Show Gist options
  • Save ZekunZh/befb16e48209b6b6595da0464dbf7dd8 to your computer and use it in GitHub Desktop.
Save ZekunZh/befb16e48209b6b6595da0464dbf7dd8 to your computer and use it in GitHub Desktop.
repos:
- repo: https://github.com/ambv/black
rev: 19.10b0
hooks:
- id: black
language_version: python3
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.0
hooks:
- id: flake8
args: ["--config=.flake8"]
- repo: https://github.com/pycqa/isort
rev: 5.8.0
hooks:
- id: isort
name: isort (python)
args: ["--settings-path=.isort.cfg"]
- id: isort
name: isort (cython)
types: [cython]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-json
- id: check-yaml
args: ["--unsafe"] # Only check syntax, not try to load yaml to avoid undetermined constructor error
- id: detect-private-key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment