From eb2caa2a3640acf9b68c3d716542adcecad0798b Mon Sep 17 00:00:00 2001 From: Ludovico Pavesi Date: Fri, 12 Apr 2024 00:08:44 +0200 Subject: [PATCH] Add linter --- .github/workflows/lint.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..c6e8cd4 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,31 @@ +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@v5 + with: + python-version: '3.9' + + - name: Install Python dependencies + run: pip install black flake8 + + - name: Run linters + uses: wearerequired/lint-action@v1 + with: + black: true + flake8: false + auto_fix: true + git_email: "95386651+weee-open-bot@users.noreply.github.com"