From 928be75cf46a1629b65cc5d4d12d807da2518ad6 Mon Sep 17 00:00:00 2001 From: missing-user <58512364+missing-user@users.noreply.github.com> Date: Mon, 6 May 2024 23:33:27 +0200 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..bc0abe3 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,37 @@ +name: Lint + +on: + # Trigger the workflow on push or pull request, + # but only for the main branch + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + run-linters: + name: Run linters + runs-on: ubuntu-latest + + steps: + - name: Check out Git repository + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: 3.8 + + - name: Install Python dependencies + run: pip install black flake8 + + - name: Run linters + uses: wearerequired/lint-action@v2 + with: + auto_fix: true + black: true + black_auto_fix: true + flake8: true + flake8_auto_fix: false