From efc2bfc750020f33313bd62ada81779dc0786d1c Mon Sep 17 00:00:00 2001 From: sommersoft Date: Wed, 4 Mar 2020 17:05:35 -0600 Subject: [PATCH 1/2] build.yml: move pylint, black, and Sphinx+theme installs to the repo --- {{ cookiecutter.library_name }}/.github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/{{ cookiecutter.library_name }}/.github/workflows/build.yml b/{{ cookiecutter.library_name }}/.github/workflows/build.yml index 92b2b9b..fe7e0f6 100644 --- a/{{ cookiecutter.library_name }}/.github/workflows/build.yml +++ b/{{ cookiecutter.library_name }}/.github/workflows/build.yml @@ -34,9 +34,13 @@ jobs: with: repository: adafruit/actions-ci-circuitpython-libs path: actions-ci - - name: Install deps + - name: Install dependencies + # (e.g. - apt-get: gettext, etc; pip: circuitpython-build-tools, requirements.txt; etc.) run: | source actions-ci/install.sh + - name: Pip install pylint, black, & Sphinx + run: | + pip install --force-reinstall pylint==1.9.2 black==19.10b0 Sphinx sphinx-rtd-theme - name: Library version run: git describe --dirty --always --tags - name: PyLint From 3b9c403ca6eec2cd80b76267b8342cbe58a7d4a0 Mon Sep 17 00:00:00 2001 From: sommersoft Date: Wed, 4 Mar 2020 18:40:35 -0600 Subject: [PATCH 2/2] cookie README: add 'code style black' badge --- {{ cookiecutter.library_name }}/README.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/{{ cookiecutter.library_name }}/README.rst b/{{ cookiecutter.library_name }}/README.rst index 62c2382..e49e36d 100644 --- a/{{ cookiecutter.library_name }}/README.rst +++ b/{{ cookiecutter.library_name }}/README.rst @@ -25,6 +25,10 @@ Introduction :target: https://github.com/{{ full_repo_name }}/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 + {% if cookiecutter.library_description != "" %} {{- cookiecutter.library_description }} {% else %}