Fix docs (#364) #666
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will test the code base using the LATEST version of black | |
# IMPORTANT: Black is under development. Hence, minor fommatting changes between | |
# different version are expected. | |
# If this test fails, install the latest version of black and then run black. | |
# Preferably, run black only on the files that you have modified. | |
# This will faciliate the revision of the proposed changes. | |
name: Check Black | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install black | |
- name: Black version | |
run: black --version | |
- name: Black check | |
working-directory: ${{github.workspace}} | |
run: black --check . |