use psf/black for black checker

This commit is contained in:
IAmTomahawkx 2021-09-21 14:48:32 -07:00
parent 7a879600b4
commit fe0ed5a568

View File

@ -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"