Skip to content

Add automated deployment helper scripts #13

Add automated deployment helper scripts

Add automated deployment helper scripts #13

Workflow file for this run

name: Lint & Type Check
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 black isort mypy
- name: Run Black (code formatter)
run: |
black LAIRM/05-TOOLS --check --diff
- name: Run isort (import sorter)
run: |
isort LAIRM/05-TOOLS --check-only --diff
- name: Run Flake8 (linter)
run: |
flake8 LAIRM/05-TOOLS --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 LAIRM/05-TOOLS --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run mypy (type checker)
run: |
mypy LAIRM/05-TOOLS --ignore-missing-imports || true