mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Adding flake8 to GHA and pre-commit. Fixing missing flake8
This commit is contained in:
parent
537ae2f901
commit
6cc629e19d
8
.github/workflows/style-checks.yml
vendored
8
.github/workflows/style-checks.yml
vendored
@ -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
|
||||||
|
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user