Black config, pre-commit and GHA

This commit is contained in:
Martin Kristiansen
2023-07-21 10:14:31 -04:00
parent be00a837cc
commit 8b4af69d87
3 changed files with 73 additions and 3 deletions

27
.github/workflows/style-checks.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: Black # TODO: add isort and flake8 later
on:
pull_request: {}
push:
branches: master
tags: "*"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies with pip
run: |
pip install --upgrade pip wheel
pip install .[test]
# - run: isort --check-only .
- run: black --check .
# - run: flake8