Skip to content

Commit e99ef3b

Browse files
committed
Add LICENSES. Set up pre-commit with reuse and pylint disabled.
1 parent 5dec0e3 commit e99ef3b

File tree

5 files changed

+833
-0
lines changed

5 files changed

+833
-0
lines changed

.pre-commit-config.yaml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
2+
#
3+
# SPDX-License-Identifier: Unlicense
4+
5+
repos:
6+
- repo: https://github.com/python/black
7+
rev: 20.8b1
8+
hooks:
9+
- id: black
10+
#- repo: https://github.com/fsfe/reuse-tool
11+
# rev: v0.12.1
12+
# hooks:
13+
# - id: reuse
14+
- repo: https://github.com/pre-commit/pre-commit-hooks
15+
rev: v2.3.0
16+
hooks:
17+
- id: check-yaml
18+
- id: end-of-file-fixer
19+
- id: trailing-whitespace
20+
#- repo: https://github.com/pycqa/pylint
21+
# rev: pylint-2.7.1
22+
# hooks:
23+
# - id: pylint
24+
# name: pylint (library code)
25+
# types: [python]
26+
# exclude: "^(docs/|examples/|setup.py$)"
27+
- repo: local
28+
hooks:
29+
- id: pylint_examples
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)']
34+
language: system

0 commit comments

Comments
 (0)