forked from techartorg/bqt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
36 lines (32 loc) · 995 Bytes
/
.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
## Pre-commit setup
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
# Ensures that a file is either empty, or ends with one newline.
- id: end-of-file-fixer
# Remove trailing whitespace
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
# Code style and formatting
- repo: https://github.com/psf/black
rev: 22.6.0
hooks:
- id: black
args: [
--line-length, "120",
]
# # Linting and PEP-8
# - repo: https://github.com/pycqa/flake8
# rev: 5.0.4
# hooks:
# - id: flake8
# args: ["--ignore=D100,D400,E501", "--exclude=*test*"]
# additional_dependencies:
# - flake8-docstrings~=1.6.0
# # Security and Vulnerability checks
# - repo: https://github.com/Lucas-C/pre-commit-hooks-bandit
# rev: v1.0.6
# hooks:
# - id: python-bandit-vulnerability-check
# args: [--skip, "B101", --recursive, clumper]