Update.
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
name: Lint
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, develop ]
|
||||
pull_request:
|
||||
branches: [ main, develop ]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -e ".[dev]"
|
||||
|
||||
- name: Run Black
|
||||
run: |
|
||||
black --check pr tests
|
||||
|
||||
- name: Run Flake8
|
||||
run: |
|
||||
flake8 pr tests --max-line-length=100 --ignore=E203,W503
|
||||
|
||||
- name: Run MyPy
|
||||
run: |
|
||||
mypy pr --ignore-missing-imports
|
||||
continue-on-error: true
|
||||
Reference in New Issue
Block a user