From aa4dbe07fd8e36ce5c6efa0e91fc904d943e4301 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 8 May 2024 12:51:11 -0400 Subject: [PATCH] seperate the linting runs into their own jobs --- .gitea/workflows/lint.yaml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/lint.yaml b/.gitea/workflows/lint.yaml index 19086a5..fd10cba 100644 --- a/.gitea/workflows/lint.yaml +++ b/.gitea/workflows/lint.yaml @@ -5,24 +5,44 @@ on: - 'master' jobs: - Lint Code (Ruff, MyPy, & Pylint): + Lint Code (Ruff): runs-on: docker container: ghcr.io/catthehacker/ubuntu:act-latest steps: - name: Checkout uses: actions/checkout@v3 - - name: Install Ruff, MyPy, and Pylint - run: pip install ruff mypy pylint + - name: Install Ruff + run: pip install ruff - name: Analysing code with Ruff run: ruff check $(git ls-files '*.py') continue-on-error: true + Lint Code (MyPy): + runs-on: docker + container: ghcr.io/catthehacker/ubuntu:act-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install MyPy + run: pip install mypy + - name: Analysing code with MyPy run: mypy $(git ls-files '*.py') continue-on-error: true + Lint Code (Pylint): + runs-on: docker + container: ghcr.io/catthehacker/ubuntu:act-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install Pylint + run: pip install pylint + - name: Analysing code with Pylint run: pylint --rcfile=.gitea/workflows/config/.pylintrc $(git ls-files '*.py') continue-on-error: true