Skip to content

Commit

Permalink
Add code linting for scripts to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dwhinham committed Mar 31, 2022
1 parent 26d80db commit 6159305
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
max-line-length = 88
extend-ignore = E203
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 2 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[settings]
profile = black

0 comments on commit 6159305

Please sign in to comment.