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 c41ea48
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,29 @@ name: CI
on: [push, pull_request]

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

strategy:
fail-fast: true

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 c41ea48

Please sign in to comment.