forked from ansible/pylibssh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
97 lines (88 loc) · 2.01 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
---
repos:
- repo: git://github.com/timothycrosley/isort
rev: 5.1.1
hooks:
- id: isort
args:
- --honor-noqa
files: >-
^.*\.p(xd|y|yx)$
types: [file]
- repo: git://github.com/asottile/add-trailing-comma
rev: v0.7.1
hooks:
- id: add-trailing-comma
- repo: git://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.6
hooks:
- id: remove-tabs
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
# Side-effects:
- id: trailing-whitespace
- id: check-merge-conflict
- id: double-quote-string-fixer
- id: end-of-file-fixer
- id: requirements-txt-fixer
exclude: >-
^(docs/requirements|requirements-build)\.txt$
# Non-modifying checks:
- id: name-tests-test
files: >-
^tests/[^_].*\.py$
- id: check-added-large-files
- id: check-byte-order-marker
- id: check-case-conflict
# disabled due to pre-commit/pre-commit-hooks#159
#- id: check-docstring-first
- id: check-json
- id: check-symlinks
- id: check-yaml
# args:
# - --unsafe
- id: detect-private-key
# Heavy checks:
- id: check-ast
exclude: >-
^docs/_samples/.*\.py$
- id: debug-statements
exclude: >-
^docs/_samples/.*\.py$
- repo: https://gitlab.com/pycqa/flake8.git
rev: 3.8.2
hooks:
- id: flake8
language_version: python3
additional_dependencies:
- flake8-2020>=1.6.0
- flake8-docstrings
- flake8-pytest-style>=1.0.0
- isort<5 # https://github.com/gforcada/flake8-isort/issues/88
- wemake-python-styleguide
files: >-
^.*\.p(xd|y|yx)$
exclude: >-
^docs/_samples/.*\.py$
types: [file]
- repo: git://github.com/Lucas-C/pre-commit-hooks-markup
rev: v1.0.0
hooks:
- id: rst-linter
files: >-
^README\.rst$
- repo: git://github.com/pycqa/pydocstyle.git
rev: 5.0.2
hooks:
- id: pydocstyle
exclude: >-
^docs/_samples/.*\.py$
# - repo: local
# hooks:
# - id: pylint
# language: system
# name: PyLint
# files: \.py$
# entry: python -m pylint
# args: []