forked from pitivi/pitivi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
58 lines (58 loc) · 1.68 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
---
repos:
- repo: https://github.com/pre-commit/pre-commit.git
rev: v1.20.0
hooks:
- id: validate_manifest
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v2.4.0
hooks:
- id: check-yaml
# Hooks able to fix small things.
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: ".svg$|.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: v1.8.0
hooks:
- id: reorder-python-imports
- repo: https://github.com/pycqa/pydocstyle
rev: 5.0.1
hooks:
- id: pydocstyle
args:
# http://www.pydocstyle.org/en/latest/error_codes.html
- --ignore=D1,D203,D213,D401,D406,D407,D413
- repo: https://gitlab.com/PyCQA/flake8
rev: 3.7.9
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: local
hooks:
- id: pylint
name: pylint
entry: python3 -m pylint.__main__ --rcfile=pylint.rc
language: system
types: [python]
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.20.0
hooks:
- id: yamllint
args:
- -d
- "{extends: default, rules: {line-length: disable}}"
- repo: https://gitlab.com/devopshq/gitlab-ci-linter
rev: v1.0.0
hooks:
- id: gitlab-ci-linter
args:
- '--server'
- 'https://gitlab.gnome.org'