File: .pre-commit-config.yaml

package info (click to toggle)
python-e3nn 0.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,700 kB
  • sloc: python: 13,368; makefile: 23
file content (51 lines) | stat: -rw-r--r-- 1,529 bytes parent folder | download
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
exclude: &exclude_files >
    (?x)^(
        docs/.*|
        tests/.*|
        .github/.*|
        LICENSE|
    )$

repos:
-   repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v2.5.0
    hooks:
    -   id: mixed-line-ending
    -   id: trailing-whitespace

-   repo: https://github.com/PyCQA/pylint
    rev: pylint-2.5.2
    hooks:
    -   id: pylint
        language: system
        args: [
            '--disable=protected-access',
            '--disable=no-else-return',
            '--disable=raise-missing-from',
            '--disable=invalid-name',
            '--disable=duplicate-code',
            '--disable=import-outside-toplevel',
            '--disable=missing-docstring',
            '--disable=bad-continuation',
            '--disable=locally-disabled',
            '--disable=too-few-public-methods',
            '--disable=too-many-arguments',
            '--disable=too-many-instance-attributes',
            '--disable=too-many-local-variables',
            '--disable=too-many-locals',
            '--disable=too-many-branches',
            '--disable=too-many-statements',
            '--disable=too-many-return-statements',
            '--disable=redefined-builtin',
            '--disable=redefined-outer-name',
            '--disable=line-too-long',
            '--disable=fixme',
        ]
        exclude: *exclude_files

-   repo: https://github.com/PyCQA/flake8
    rev: 6.1.0
    hooks:
      - id: flake8
        name: Check PEP8
        additional_dependencies: [Flake8-pyproject]