Skip to content

Commit

Permalink
ci: add a job running pylint
Browse files Browse the repository at this point in the history
Signed-off-by: Davide Madrisan <d.madrisan@proton.me>
  • Loading branch information
madrisan committed Dec 22, 2024
1 parent 8c31f68 commit d89a81d
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: lint
on: [push, pull_request]
jobs:
run-linters:
name: Run linters
ci:
name: Run black and pylint tools
runs-on: ubuntu-latest

steps:
Expand All @@ -12,14 +12,23 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: 3.12

- name: Install the latest version of uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"

- name: Install Python dependencies
run: pip install black flake8
run: pip install black flake8 pylint

- name: Run linters
uses: wearerequired/lint-action@v2
with:
auto_fix: false
black: true
flake8: false

- name: Analysing the code with pylint
run: |
uv run pylint $(git ls-files '*.py')

0 comments on commit d89a81d

Please sign in to comment.