/ patches / 0001-Added-pre-commit-config-file.patch
0001-Added-pre-commit-config-file.patch
 1  From f61829b736156f06e88125a150428bd11aa146df Mon Sep 17 00:00:00 2001
 2  From: dherrada <dylan.herrada@adafruit.com>
 3  Date: Mon, 11 Jan 2021 16:06:47 -0500
 4  Subject: [PATCH] Added pre-commit-config file
 5  
 6  ---
 7   .pre-commit-config.yaml | 19 +++++++++++++++++++
 8   1 file changed, 19 insertions(+)
 9   create mode 100644 .pre-commit-config.yaml
10  
11  diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
12  new file mode 100644
13  index 0000000..aab5f1c
14  --- /dev/null
15  +++ b/.pre-commit-config.yaml
16  @@ -0,0 +1,19 @@
17  +# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
18  +#
19  +# SPDX-License-Identifier: Unlicense
20  +
21  +repos:
22  +-   repo: https://github.com/python/black
23  +    rev: stable
24  +    hooks:
25  +    - id: black
26  +-   repo: https://github.com/fsfe/reuse-tool
27  +    rev: latest
28  +    hooks:
29  +    - id: reuse
30  +-   repo: https://github.com/pre-commit/pre-commit-hooks
31  +    rev: v2.3.0
32  +    hooks:
33  +    -   id: check-yaml
34  +    -   id: end-of-file-fixer
35  +    -   id: trailing-whitespace
36  -- 
37  2.25.1
38