Skip to content

Lint refactoring, add GitHub Actions linting #6

Lint refactoring, add GitHub Actions linting

Lint refactoring, add GitHub Actions linting #6

Workflow file for this run

---
name: Lint
on: [push, pull_request]
jobs:
# Thanks https://black.readthedocs.io/en/stable/integrations/github_actions.html
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/[email protected]
isort:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: isort/isort-action@v1
with:
requirements-files: "requirements.txt requirements-test.txt"
flake8:
runs-on: ubuntu-latest
name: 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.10"
- name: flake8 Lint
uses: py-actions/flake8@v2