Skip to content

Add linter and lint existing files #4

Add linter and lint existing files

Add linter and lint existing files #4

Workflow file for this run

# .github/workflows/lint.yml
name: Lint
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install Python linting dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 black isort
pip install -r requirements.txt
- name: Run Python linters
run: |
black . --check
isort . --check-only