From 1f02429d83f5a7059f6cd12008931666568ac18e Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 5 Apr 2024 18:21:56 +0200 Subject: [PATCH] add a black github action --- .github/workflows/black.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/black.yaml diff --git a/.github/workflows/black.yaml b/.github/workflows/black.yaml new file mode 100644 index 000000000..46b9b9f18 --- /dev/null +++ b/.github/workflows/black.yaml @@ -0,0 +1,15 @@ +# https://black.readthedocs.io/en/stable/integrations/github_actions.html#usage +# see also what we use locally, requirements.d/codestyle.txt - should be the same version here. + +name: Lint + +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - uses: psf/black@stable + with: + version: "~= 24.0" \ No newline at end of file