-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
55 lines (55 loc) · 1.85 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
48
49
50
51
52
53
54
55
# This is the configuration file for the `pre-commit` hook
#
# If you want to benefit from this hook, please execute `pre-commit` install using the terminal
# If you want to run the checks on all files, run `pre-commit run -a` using the terminal
#
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-ast
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-vcs-permalinks
- id: check-yaml
args: [--allow-multiple-documents]
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=lf]
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/ambv/black
rev: 22.12.0
hooks:
- id: black
files: duplicity_backup_s3/.*
- repo: https://github.com/PyCQA/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
args:
- --ignore=D100,D105,D203,D212,D213
#from: http://www.pydocstyle.org/en/latest/error_codes.html
#D100 Missing docstring in public module
#D105 Missing docstring in magic method
#D203 1 blank line required before class docstring
#D212 Multi-line docstring summary should start at the first line
#D213 Multi-line docstring summary should start at the second line
files: duplicity_backup_s3/.*
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
args:
- --ignore=F821,W501,W504,W503
# W501: Line break before binary operator
# W503" line break before :inary operator
# W504: Line break after binary operator
files: duplicity_backup_s3/.*
- repo: https://github.com/mgedmin/check-manifest
rev: '0.49'
hooks:
- id: check-manifest