Create Python_format.yml
This commit is contained in:
parent
9d5b9a133c
commit
11ffd89356
1 changed files with 17 additions and 0 deletions
17
Python_format.yml
Normal file
17
Python_format.yml
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
name: Format Python
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
jobs:
|
||||||
|
format:
|
||||||
|
name: Format
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Setup Python 3.7
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: 3.7
|
||||||
|
- name: Check formatting
|
||||||
|
run: |
|
||||||
|
pip install black==21.6b0
|
||||||
|
black --check --diff ./
|
||||||
Loading…
Add table
Add a link
Reference in a new issue