use psf/black for black checker
This commit is contained in:
parent
7a879600b4
commit
fe0ed5a568
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
@ -28,19 +28,11 @@ jobs:
|
|||||||
black:
|
black:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Run linter
|
||||||
uses: actions/setup-python@v1
|
uses: psf/black@stable
|
||||||
with:
|
with:
|
||||||
python-version: 3.8
|
options: "--line-length 120 --check"
|
||||||
|
src: "./discord"
|
||||||
- name: install black
|
|
||||||
run: pip install black
|
|
||||||
|
|
||||||
- name: run linter
|
|
||||||
uses: wearerequired/lint-action@v1
|
|
||||||
with:
|
|
||||||
black: true
|
|
||||||
black_args: ". --line-length 120 --check"
|
|
Loading…
x
Reference in New Issue
Block a user