From 5e716801c017b98a7f37dc6cc0a76005f4c635ca Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Mon, 25 Sep 2023 20:26:02 +0200 Subject: [PATCH] Change usage of black to the official black action (#152) --- .github/workflows/lint-actions.yaml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/lint-actions.yaml b/.github/workflows/lint-actions.yaml index eb76d79..4302934 100644 --- a/.github/workflows/lint-actions.yaml +++ b/.github/workflows/lint-actions.yaml @@ -9,17 +9,13 @@ jobs: Black: runs-on: ubuntu-latest steps: - - name: Set up python - id: setup-python - uses: actions/setup-python@v4 - with: - python-version: '3.11' - name: Check out Git repository uses: actions/checkout@v3 - - run: pip install black - name: Run black - run: | - black src tests + uses: psf/black@stable + with: + options: --check --diff --color --fast + src: ./src ./tests mypy: runs-on: ubuntu-latest