mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-05-26 01:03:12 +03:00
Create black.yml
This commit is contained in:
parent
6165e0c6bf
commit
9f9c83af65
20
.github/workflows/black.yml
vendored
Normal file
20
.github/workflows/black.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
name: Black
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install black
|
||||
|
||||
- name: Check code format with black
|
||||
run: black --check .
|
Loading…
Reference in New Issue
Block a user