-
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (37 loc) · 1.21 KB
/
pylint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
name: Pylint
permissions: {}
on:
- workflow_dispatch
- push
# push:
# branches: ["main", "master"]
# pull_request:
# branches: ["main", "master"]
jobs:
build:
permissions: read-all
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", 3.13-dev, 3.14-dev]
# 3.10 no longer compatible
steps:
- uses: actions/checkout@v4
# - uses: actions/checkout@latest # latest not callable
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install build prerequisites (for 3.14)
run: sudo apt install libxml2-dev libxslt-dev
- name: Prepare running environment (dependencies)
run: |
pip install --upgrade poetry poetry-plugin-export
poetry export --without-hashes --output=requirements.txt
pip install --upgrade pylint --requirement requirements.txt
- name: Analysing the code with pylint
run: |
# shellcheck disable=SC2035,SC2046
# pylint --verbose --jobs 0 $(git ls-files *.py *.pyi)
pylint --verbose --jobs 0 src/valuefragments/[cdhm]*.py