Adding flake8 to GHA and pre-commit. Fixing missing flake8

This commit is contained in:
Martin Kristiansen 2023-08-10 23:32:31 -04:00 committed by psychedelicious
parent 537ae2f901
commit 6cc629e19d
2 changed files with 11 additions and 4 deletions

View File

@ -1,6 +1,6 @@
name: style checks name: style checks
# just formatting for now # just formatting and flake8 for now
# TODO: add isort and flake8 later # TODO: add isort later
on: on:
pull_request: pull_request:
@ -20,8 +20,8 @@ jobs:
- name: Install dependencies with pip - name: Install dependencies with pip
run: | run: |
pip install black pip install black flake8
# - run: isort --check-only . # - run: isort --check-only .
- run: black --check . - run: black --check .
# - run: flake8 - run: flake8

View File

@ -8,3 +8,10 @@ repos:
language: system language: system
entry: black entry: black
types: [python] types: [python]
- id: flake8
name: flake8
stages: [commit]
language: system
entry: flake8
types: [python]