-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
36 lines (34 loc) · 955 Bytes
/
.pre-commit-config.yaml
File metadata and controls
36 lines (34 loc) · 955 Bytes
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
fail_fast: false
default_language_version:
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 21.10b0
hooks:
- id: black
args: [ '--line-length', '100' ]
exclude: '\{\{cookiecutter.python_package_name\}\}/'
- repo: https://github.com/asottile/blacken-docs
rev: v1.11.0
hooks:
- id: blacken-docs
args: [ '--line-length', '100' ]
additional_dependencies: [black==21.7b0]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.10
hooks:
- id: forbid-crlf
- id: remove-crlf
# Black does not clear tabs in docstrings
- id: forbid-tabs
files: '.*\.py$'
- id: remove-tabs
files: '.*\.py$'
args: [ '--whitespaces-count', '4' ]