-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
.pre-commit-config.yaml
47 lines (47 loc) 路 1.42 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
43
44
45
46
47
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.0.0
hooks:
- id: check-toml
exclude: "^{{cookiecutter.project_name}}/"
- id: check-yaml
exclude: "^{{cookiecutter.project_name}}/"
- id: debug-statements
exclude: "^{{cookiecutter.project_name}}/"
- id: check-merge-conflict
- id: check-json
exclude: "^{{cookiecutter.project_name}}/"
- id: end-of-file-fixer
- repo: https://github.com/timothycrosley/isort
rev: 5.8.0
hooks:
- id: isort
exclude: "^{{cookiecutter.project_name}}/"
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
exclude: "^{{cookiecutter.project_name}}/"
- repo: local
hooks:
- id: flakehell
name: flakehell
description: "`Flakehell` it's a Flake8 wrapper to make it cools."
entry: flakehell
args: [lint]
language: python
types: [python]
require_serial: true
additional_dependencies: [
'flake8~=3.9.1',
'flakehell~=0.9.0',
'flake8-builtins~=1.5.3',
'flake8-blind-except~=0.2.0',
'flake8-logging-format~=0.6.0',
'flake8-bugbear~=21.4.3',
'flake8-annotations~=2.6.2',
'flake8-docstrings~=1.6.0',
'flake8-bandit~=2.1.2',
'darglint~=1.8.0'
]
exclude: "^{{cookiecutter.project_name}}/"