From 8226914a169c235d4b5b8799cb292fce70887766 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Wed, 10 Nov 2021 12:22:03 -0500 Subject: [PATCH] Revert "Removing pylint from library files and disabling black" --- .pre-commit-config.yaml | 11 +++++++++++ README.rst | 5 +++++ 2 files changed, 16 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f26a99a..0afe50a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,6 +3,10 @@ # SPDX-License-Identifier: Unlicense repos: +- repo: https://github.com/python/black + rev: 20.8b1 + hooks: + - id: black - repo: https://github.com/fsfe/reuse-tool rev: v0.12.1 hooks: @@ -13,6 +17,13 @@ repos: - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace +- repo: https://github.com/pycqa/pylint + rev: pylint-2.7.1 + hooks: + - id: pylint + name: pylint (library code) + types: [python] + exclude: "^(docs/|examples/|tests/|setup.py$)" - repo: local hooks: - id: pylint_examples diff --git a/README.rst b/README.rst index 659baad..c5ba519 100644 --- a/README.rst +++ b/README.rst @@ -16,6 +16,11 @@ Introduction :target: https://github.com/adafruit/Adafruit_CircuitPython_asyncio/actions :alt: Build Status + +.. image:: https://img.shields.io/badge/code%20style-black-000000.svg + :target: https://github.com/psf/black + :alt: Code Style: Black + Cooperative multitasking and asynchronous I/O The code in this library is largely based on the