1 # SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
3 # SPDX-License-Identifier: Unlicense
6 - repo: https://github.com/python/black
10 - repo: https://github.com/fsfe/reuse-tool
14 - repo: https://github.com/pre-commit/pre-commit-hooks
18 - id: end-of-file-fixer
19 - id: trailing-whitespace
20 - repo: https://github.com/pycqa/pylint
24 name: pylint (library code)
26 exclude: "^(docs/|examples/|tests/|setup.py$)"
30 name: pylint (examples code)
31 description: Run pylint rules on "examples/*.py" files
32 entry: /usr/bin/env bash -c
33 args: ['([[ ! -d "examples" ]] || for example in $(find . -path "./examples/*.py"); do pylint --disable=missing-docstring,invalid-name $example; done)']
36 name: pylint (tests code)
37 description: Run pylint rules on "tests/*.py" files
38 entry: /usr/bin/env bash -c
39 args: ['([[ ! -d "tests" ]] || for test in $(find . -path "./tests/*.py"); do pylint --disable=missing-docstring $test; done)']