Skip to content

Use tomllib for config #6

Use tomllib for config

Use tomllib for config #6

Workflow file for this run

# .github/workflows/lint.yml
name: Code Lint & Format
on:
push:
paths:
- "src/**"
branches:
- "**"
pull_request:
branches:
- master
jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: [3.11]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install lint tools
run: |
python -m pip install --upgrade pip
pip install black flake8
- name: Auto-format with Black
run: black src
- name: Black format check
run: black --check src
- name: Flake8 static analysis
run: flake8 src --extend-ignore=E501