File: .pre-commit-config.yaml

package info (click to toggle)
python-adafruit-platformdetect 3.87.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 368 kB
  • sloc: python: 2,607; sh: 6; makefile: 2
file content (42 lines) | stat: -rw-r--r-- 1,234 bytes parent folder | download | duplicates (2)
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
# SPDX-FileCopyrightText: 2020 Adafruit
#
# SPDX-License-Identifier: Unlicense

repos:
-   repo: https://github.com/python/black
    rev: 23.3.0
    hooks:
    - id: black
-   repo: https://github.com/fsfe/reuse-tool
    rev: v1.1.2
    hooks:
    - id: reuse
-   repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.4.0
    hooks:
    -   id: check-yaml
    -   id: end-of-file-fixer
    -   id: trailing-whitespace
-   repo: https://github.com/pycqa/pylint
    rev: v2.17.4
    hooks:
    -   id: pylint
        name: pylint (library code)
        types: [python]
        args:
          - --disable=consider-using-f-string,duplicate-code
        exclude: "^(docs/|examples/|tests/|setup.py$)"
    -   id: pylint
        name: pylint (example code)
        description: Run pylint rules on "examples/*.py" files
        types: [python]
        files: "^examples/"
        args:
        - --disable=missing-docstring,invalid-name,consider-using-f-string,duplicate-code
    -   id: pylint
        name: pylint (test code)
        description: Run pylint rules on "tests/*.py" files
        types: [python]
        files: "^tests/"
        args:
        - --disable=missing-docstring,consider-using-f-string,duplicate-code