Skip to content

Commit 794f577

Browse files
authored
Merge pull request #2 from adafruit/revert-1-dherrada-patch-1
Revert "Removing pylint from library files and disabling black"
2 parents 607627a + 8226914 commit 794f577

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.pre-commit-config.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
# SPDX-License-Identifier: Unlicense
44

55
repos:
6+
- repo: https://github.com/python/black
7+
rev: 20.8b1
8+
hooks:
9+
- id: black
610
- repo: https://github.com/fsfe/reuse-tool
711
rev: v0.12.1
812
hooks:
@@ -13,6 +17,13 @@ repos:
1317
- id: check-yaml
1418
- id: end-of-file-fixer
1519
- 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/|tests/|setup.py$)"
1627
- repo: local
1728
hooks:
1829
- id: pylint_examples

README.rst

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ Introduction
1616
:target: https://github.com/adafruit/Adafruit_CircuitPython_asyncio/actions
1717
:alt: Build Status
1818

19+
20+
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
21+
:target: https://github.com/psf/black
22+
:alt: Code Style: Black
23+
1924
Cooperative multitasking and asynchronous I/O
2025

2126
The code in this library is largely based on the

0 commit comments

Comments
 (0)