mirror of
https://github.com/dwhinham/mt32-pi.git
synced 2026-02-04 00:04:35 +00:00
Add code linting for scripts to CI
This commit is contained in:
27
.github/workflows/ci.yml
vendored
27
.github/workflows/ci.yml
vendored
@@ -4,8 +4,35 @@ on: [push, pull_request]
|
||||
|
||||
env:
|
||||
toolchain-version: 10.3-2021.07
|
||||
python-version: 3.6
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ env.python-version }}
|
||||
|
||||
- uses: psf/black@stable
|
||||
with:
|
||||
options: --check --diff --experimental-string-processing
|
||||
src: scripts
|
||||
|
||||
- uses: isort/isort-action@master
|
||||
with:
|
||||
sortPaths: scripts
|
||||
|
||||
- uses: py-actions/flake8@v2
|
||||
with:
|
||||
path: scripts
|
||||
|
||||
- uses: ludeeus/action-shellcheck@master
|
||||
with:
|
||||
scandir: scripts
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
name: build-${{ matrix.board }}
|
||||
|
||||
2
.isort.cfg
Normal file
2
.isort.cfg
Normal file
@@ -0,0 +1,2 @@
|
||||
[settings]
|
||||
profile = black
|
||||
Reference in New Issue
Block a user