Added pre-commit-config file

Signed-off-by: dherrada <dylan.herrada@adafruit.com>
This commit is contained in:
dherrada 2021-01-11 16:06:47 -05:00
parent 38d878672b
commit 648a18d308

19
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,19 @@
# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
#
# SPDX-License-Identifier: Unlicense
repos:
- repo: https://github.com/python/black
rev: stable
hooks:
- id: black
- repo: https://github.com/fsfe/reuse-tool
rev: latest
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