Use tomllib for config #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .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 |