add black workflow, change our code formats. closes #43

This commit is contained in:
IAmTomahawkx
2021-09-05 14:32:51 -07:00
parent 3ffe134895
commit 1833e984ce
3 changed files with 30 additions and 3 deletions

25
.github/workflows/black.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Lint
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: install black
run: pip install black
- name: run linter
uses: wearerequired/lint-action@v1
with:
black: true
black_args: ". --line-length 120"
auto_fix: true