From ed0560a7bfd3de5ad28393c9454d08b4abd0e0f0 Mon Sep 17 00:00:00 2001 From: Ludovico Pavesi Date: Mon, 4 Nov 2024 18:08:49 +0100 Subject: [PATCH] Add CI --- .github/workflows/lint.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..85dd8f1 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,30 @@ +name: Linting + +on: + push: + branches: + - master + +jobs: + run-linters: + name: Run linters + runs-on: ubuntu-latest + + steps: + - name: Check out Git repository + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: 3.12 + + - name: Install Python dependencies + run: pip install black + + - name: Run linters + uses: wearerequired/lint-action@v1 + with: + black: true + auto_fix: true + git_email: "95386651+weee-open-bot@users.noreply.github.com"