-
Notifications
You must be signed in to change notification settings - Fork 13
/
.pre-commit-config.yaml
31 lines (29 loc) · 1.31 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
repos:
# isort
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
# flake8
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
args: ["--ignore=W503"]
# pre-commit-hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files # Block large files from being committed
args: ["--maxkb=1000"] # - >=1MB files are large
- id: debug-statements # Block debugger imports and breakpoint calls
- id: check-yaml # Verify syntax of all YAML files
- id: check-toml # Verify syntax of all TOML files
- id: trailing-whitespace # Trim trailing whitespace
args: [--markdown-linebreak-ext=md] # - except hard linebreaks in markdown files
- id: check-merge-conflict # Check for files that contain merge conflict strings
- id: end-of-file-fixer # Make sure files end in a newline and only a newline
- id: fix-encoding-pragma # Remove the coding pragma: # -*- coding: utf-8 -*-
args: ["--remove"]
- id: mixed-line-ending # Replace or check mixed line ending
args: ["--fix=lf"]