2022-06-04 15:10:25 +02:00
|
|
|
name: Lint
|
2022-06-04 00:35:48 +02:00
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2022-06-04 15:10:25 +02:00
|
|
|
lint:
|
2022-06-04 00:35:48 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@main
|
|
|
|
|
|
|
|
- name: Set up Python 3
|
|
|
|
uses: actions/setup-python@main
|
|
|
|
with:
|
2022-12-02 21:39:18 +01:00
|
|
|
python-version: "3.11"
|
2022-06-04 00:35:48 +02:00
|
|
|
|
|
|
|
- name: Install Poetry
|
|
|
|
run: curl https://install.python-poetry.org | python -
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: poetry install
|
|
|
|
|
2022-06-04 15:10:25 +02:00
|
|
|
- name: Run black
|
|
|
|
run: poetry run python -m black --check --diff .
|
|
|
|
|
|
|
|
- name: Run isort
|
|
|
|
run: poetry run python -m isort --check-only --diff .
|
|
|
|
|
|
|
|
- name: Run pyright
|
|
|
|
run: poetry run python -m pyright --warnings
|