Fix db #9
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
# Ensure Python code is linted and formatted, matching the style guide | |
name: Python Linting | |
on: [push, pull_request] | |
jobs: | |
black-lint: | |
runs-on: ubuntu-latest | |
name: Python black Lint | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: psf/black@stable | |
flake8-lint: | |
runs-on: ubuntu-latest | |
name: Python flake8 Lint | |
steps: | |
- name: Check out source repository | |
uses: actions/checkout@v3 | |
- name: Set up Python environment | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: flake8 Lint | |
uses: py-actions/flake8@v2 | |
with: | |
ignore: "E701,W503,E203" | |
exclude: "docs,.idea" | |
max-line-length: "88" | |
path: "." | |
plugins: "flake8-docstrings flake8-black" |