Skip to content

Commit

Permalink
ci: add basic linting CI
Browse files Browse the repository at this point in the history
This simply runs mypy and flake8 on all of the python scripts, but that
should be enough for now.

Signed-off-by: Daniil Tatianin <[email protected]>
  • Loading branch information
d-tatianin committed Oct 14, 2023
1 parent 67a8cef commit cef02f7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,32 @@ name: CI
on: [push, pull_request]

jobs:
lint-python-scripts:
runs-on: ubuntu-latest

strategy:
fail-fast: true

env:
MYPYPATH: "./scripts"

steps:
- uses: actions/checkout@v3
with:
submodules: true

- name: Install flake8 & mypy
run: |
sudo apt update
sudo apt install python3 python3-pip
pip install flake8 mypy
- name: Run flake8 on the project
run: flake8 *.py scripts/*.py

- name: Run mypy on the project
run: mypy --disallow-incomplete-defs --no-implicit-optional *.py scripts/*.py

build:
runs-on: ${{ matrix.os }}

Expand Down

0 comments on commit cef02f7

Please sign in to comment.