From 126f9c1efb458216436dc4cab206168391466b3b Mon Sep 17 00:00:00 2001 From: Andrea Date: Tue, 9 Sep 2025 13:41:23 +0200 Subject: [PATCH] chore: add lint workflow --- .gitea/workflows/code-quality.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitea/workflows/code-quality.yaml diff --git a/.gitea/workflows/code-quality.yaml b/.gitea/workflows/code-quality.yaml new file mode 100644 index 0000000..a27f824 --- /dev/null +++ b/.gitea/workflows/code-quality.yaml @@ -0,0 +1,24 @@ +name: Code Quality +on: + push: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v5 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + + - name: Run lint + run: | + pylint --errors-only $(git ls-files '*.py')