mirror of
https://github.com/9P9/Discord-QR-Token-Logger.git
synced 2025-07-02 06:29:39 +00:00
Create black.yml
This commit is contained in:
parent
4caa140573
commit
f9ddcdcbac
28
.github/workflows/black.yml
vendored
Normal file
28
.github/workflows/black.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
name: Black Formatter Check
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- '**.py'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- '**.py'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Check_With_Black:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Set up Python 3.x
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: 3.x
|
||||||
|
- name: Install dependencies
|
||||||
|
run: python -m pip install --upgrade pip && pip install black
|
||||||
|
- name: Run Black formatter check
|
||||||
|
run: black --check .
|
Loading…
x
Reference in New Issue
Block a user