Adding isort GHA and pre-commit hooks

This commit is contained in:
Martin Kristiansen 2023-08-18 08:51:07 -04:00 committed by Kent Keirsey
parent 77a4fabc66
commit fafa21569a
2 changed files with 9 additions and 4 deletions

View File

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

View File

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