45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
# See https://pre-commit.com for more information
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
fail_fast: false
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.5.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-json
|
|
- id: check-merge-conflict
|
|
- id: debug-statements
|
|
- id: detect-private-key
|
|
- id: fix-byte-order-marker
|
|
- id: check-yaml
|
|
- id: mixed-line-ending
|
|
args: [--fix=lf]
|
|
- id: check-added-large-files
|
|
args: [--maxkb=5120]
|
|
- repo: https://github.com/psf/black
|
|
rev: 23.10.0
|
|
hooks:
|
|
- id: black
|
|
name: Formatting
|
|
args: ["dev_utils"]
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: 5.12.0
|
|
hooks:
|
|
- id: isort
|
|
name: Import order
|
|
args: ["--profile=black", "dev_utils"]
|
|
- repo: https://github.com/PyCQA/autoflake
|
|
rev: v2.2.1
|
|
hooks:
|
|
- id: autoflake
|
|
name: Import pruning
|
|
args: ["-i", "-r","--remove-unused-variables","--ignore-init-module-imports"]
|
|
- repo: local
|
|
hooks:
|
|
- id: breakpoint_statement
|
|
name: Check that breakpoint() isn't in source code
|
|
types: [python]
|
|
entry: 'breakpoint()'
|
|
language: pygrep
|