update github actions and add black linter for PRs #32
Workflow file for this run
This file contains 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
name: Run linters on PRs | |
on: | |
pull_request: | |
branches: | |
- development | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run black linter | |
uses: psf/black@stable | |
# use the flake8 linter to annotate improperly formatted code | |
# note linter arguments are supplied via the .flake8 config file | |
- name: Annotate PR after running flake8 | |
uses: TrueBrain/actions-flake8@v2 | |