build.yml: add black formatting check

Signed-off-by: sommersoft <sommersoft@gmail.com>
This commit is contained in:
sommersoft 2020-04-07 15:02:31 -05:00
parent af8fa2a00a
commit 5b13f043af

View file

@ -43,6 +43,9 @@ jobs:
pip install --force-reinstall pylint black==19.10b0 Sphinx sphinx-rtd-theme pip install --force-reinstall pylint black==19.10b0 Sphinx sphinx-rtd-theme
- name: Library version - name: Library version
run: git describe --dirty --always --tags run: git describe --dirty --always --tags
- name: Check formatting
run: |
black --check --target-version=py35 .
- name: PyLint - name: PyLint
run: | run: |
pylint $( find . -path './adafruit*.py' ) pylint $( find . -path './adafruit*.py' )