circup/.pre-commit-config.yaml
Patrick 86c0d0a111
Fix 84 - Apply Cookiecutter style to Circup Repo (#85)
* add pre-commit, remove duplicate redundant from makefile, fix all the lints
* Use pre-commit checks in build action
* Renamed files for REUSE to work in Ubuntu
* Move pre-commit earlier to fail faster
* remove makefile dependency and update docs
2021-02-19 09:19:15 -08:00

32 lines
812 B
YAML

# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
#
# SPDX-License-Identifier: Unlicense
repos:
- repo: https://github.com/pycqa/pylint
rev: pylint-2.6.0
hooks:
- id: pylint
name: lint (examples)
types: [python]
files: ^examples/
args:
- --disable=missing-docstring,invalid-name,bad-whitespace
- id: pylint
name: lint (code)
types: [python]
exclude: "^(docs/|examples/|setup.py$)"
- repo: https://github.com/python/black
rev: 20.8b1
hooks:
- id: black
- repo: https://github.com/fsfe/reuse-tool
rev: v0.12.1
hooks:
- id: reuse
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace