add black workflow, change our code formats. closes #43
This commit is contained in:
25
.github/workflows/black.yml
vendored
Normal file
25
.github/workflows/black.yml
vendored
Normal 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
|
Reference in New Issue
Block a user