update github actions and add black linter for PRs #10
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 | |
- name: Annotate PR after running flake8 | |
uses: TrueBrain/actions-flake8@v2 | |
with: | |
max_line_length: 88 | |
extra_arguments: | |
"--per-file-ignores='*/__init__.py:F401'" |