-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
41 lines (41 loc) · 1.46 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
32
33
34
35
36
37
38
39
40
41
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace #This hook trims all whitespace from the end of each line
- id: end-of-file-fixer #This hooks ensures that all files end in a newline and only a newline.
- id: mixed-line-ending # This hook replaces or checks mixed line ending.
- id: check-yaml #This hook will attempt to load all yaml files and verify their syntax
- id: check-added-large-files # this hook will prevent extremellarge files from being committed.
args: [--maxkb=20000]
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: "v0.0.265"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/econchick/interrogate
rev: 1.5.0
hooks:
- id: interrogate
args: [-vv, -i, --fail-under=95]
#- repo: https://github.com/PyCQA/autoflake # replaced by ruff
# rev: "1.4"
# hooks:
# - id: autoflake
# args: [--in-place, --remove-unused-variables]
#- repo: https://gitlab.com/pycqa/flake8
# rev: 4.0.1
# hooks:
# - id: flake8