This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2022-03-31 15:40:20 +00:00
|
|
|
# Define action name, description, and inputs
|
|
|
|
name: "Python Black Lint"
|
|
|
|
description: "Lint python code with black"
|
|
|
|
|
|
|
|
# Define action steps
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: "3.x"
|
|
|
|
architecture: x64
|
|
|
|
|
|
|
|
- run: |
|
|
|
|
pip install black
|
2022-04-06 19:34:06 +00:00
|
|
|
shell: bash
|
|
|
|
- run: |
|
2022-03-31 15:40:20 +00:00
|
|
|
black --check .
|
|
|
|
shell: bash
|