add linting
This commit is contained in:
parent
f69bda6506
commit
3049f3dee3
31
.github/actions/lint.yml
vendored
Normal file
31
.github/actions/lint.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
name: Python Linting
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.10
|
||||
|
||||
- name: Install Poetry
|
||||
run: |
|
||||
curl -sSL https://install.python-poetry.org | python -
|
||||
- name: Install dependencies
|
||||
run: poetry install
|
||||
|
||||
- name: ruff
|
||||
run: ruff src
|
||||
|
||||
- name: mypy
|
||||
run: mypy src
|
Loading…
Reference in New Issue
Block a user