-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
.pre-commit-config.yaml
68 lines (68 loc) · 1.92 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
---
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.0.1
hooks:
- id: check-yaml
# Hooks able to fix small things.
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: ".svg$|.patch$|.po$"
- id: fix-encoding-pragma
# Hooks doing lightweight Python checks.
- id: check-docstring-first
- id: debug-statements
- repo: https://github.com/asottile/reorder_python_imports.git
rev: v2.6.0
hooks:
- id: reorder-python-imports
args:
- --py3-plus
- --unclassifiable-application-module=tests
- repo: https://github.com/PyCQA/pydocstyle.git
rev: 6.1.1
hooks:
- id: pydocstyle
args:
# http://www.pydocstyle.org/en/latest/error_codes.html
- --ignore=D1,D203,D213,D401,D406,D407,D413
- repo: https://github.com/PyCQA/flake8.git
rev: 3.9.2
hooks:
- id: flake8
args:
# http://flake8.pycqa.org/en/latest/user/error-codes.html
# https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
- --ignore=E402,E501,E722,F401,F841,W504
- repo: https://github.com/pre-commit/mirrors-mypy.git
rev: 'v0.910-1'
hooks:
- id: mypy
files: >
(?x)^pitivi/(
autoaligner.py|
clipproperties.py|
timeline/timeline.py
)$
args:
- --no-strict-optional
- repo: local
hooks:
- id: pylint
name: pylint
entry: python3 -m pylint.__main__ --rcfile=pylint.rc -j1
language: system
types: [python]
exclude: >
(?x)^(
tests/validate-tests/manager.py|
bin/pitivi.in
)$
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.26.3
hooks:
- id: yamllint
args:
- -d
- "{extends: default, rules: {line-length: disable}}"