diff --git a/.github/workflows/yapf-check.yml b/.github/workflows/black-check.yml similarity index 90% rename from .github/workflows/yapf-check.yml rename to .github/workflows/black-check.yml index 0275b24698..76e2a932fb 100644 --- a/.github/workflows/yapf-check.yml +++ b/.github/workflows/black-check.yml @@ -1,7 +1,7 @@ # This workflow will install Python dependencies, run tests and lint with a single version of Python # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions -name: yapf formatting +name: black formatting on: # Trigger the workflow on push or pull request, @@ -31,7 +31,7 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements-optional.txt - - name: Check format with yapf + - name: Check format with black run: | # Returns en error code if the files are not formatted - yapf --diff -r . + black --diff --color --check . diff --git a/requirements-optional.txt b/requirements-optional.txt index 1a07f67465..b0529abd14 100644 --- a/requirements-optional.txt +++ b/requirements-optional.txt @@ -1,4 +1,4 @@ -yapf<0.34 +black toml<0.11 pytest-cov coverage<8.0.0