-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
42 lines (42 loc) · 1.18 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
42
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-ast
- id: check-toml
- id: check-xml
- id: check-json
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
# - id: check-shebang-scripts-are-executable
- id: debug-statements
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: check-docstring-first
- id: fix-byte-order-marker
- id: mixed-line-ending
args: [--fix=lf]
- repo: https://github.com/psf/black
rev: 22.6.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8 # E***, W***, F***
exclude: (__init__\.py)|(venv)|(test)
# additional_dependencies:
# - dlint # DUO***
# - flake8-2020 # YTT***
# - flake8-bugbear # B***
# - flake8-builtins # A***
# - flake8-comprehensions # C4**
# - flake8-deprecated # D***
# # - flake8-variables-names # VNE***
# - mccabe # C9**
# # - pep8-naming # N8**