| 1 |
name: Lint |
| 2 |
|
| 3 |
on: [push, pull_request] |
| 4 |
|
| 5 |
permissions: {} |
| 6 |
|
| 7 |
jobs: |
| 8 |
ruff: |
| 9 |
runs-on: ubuntu-latest |
| 10 |
steps: |
| 11 |
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd |
| 12 |
- uses: astral-sh/ruff-action@0ce1b0bf8b818ef400413f810f8a11cdbda0034b |
| 13 |
with: |
| 14 |
args: 'format --check --diff' |
| 15 |
- uses: astral-sh/ruff-action@0ce1b0bf8b818ef400413f810f8a11cdbda0034b |
| 16 |
with: |
| 17 |
args: 'check' |
| 18 |
|
| 19 |
pylint: |
| 20 |
runs-on: ubuntu-latest |
| 21 |
strategy: |
| 22 |
matrix: |
| 23 |
python-version: ["3.9", "3.10", "3.11", "3.12"] |
| 24 |
steps: |
| 25 |
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd |
| 26 |
- name: Set up Python ${{ matrix.python-version }} |
| 27 |
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 |
| 28 |
with: |
| 29 |
python-version: ${{ matrix.python-version }} |
| 30 |
- name: Install dependencies |
| 31 |
run: | |
| 32 |
python -m pip install --upgrade pip |
| 33 |
pip install .[test] |
| 34 |
- name: Analysing the code with pylint |
| 35 |
run: | |
| 36 |
pylint $(git ls-files 'src/*.py') |
| 37 |
|
| 38 |
pyright: |
| 39 |
runs-on: ubuntu-latest |
| 40 |
strategy: |
| 41 |
matrix: |
| 42 |
python-version: ["3.9", "3.10", "3.11", "3.12"] |
| 43 |
steps: |
| 44 |
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd |
| 45 |
- name: Set up Python ${{ matrix.python-version }} |
| 46 |
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 |
| 47 |
with: |
| 48 |
python-version: ${{ matrix.python-version }} |
| 49 |
- name: Install dependencies |
| 50 |
run: | |
| 51 |
python -m pip install --upgrade pip |
| 52 |
pip install -e .[test] |
| 53 |
- uses: jakebailey/pyright-action@8ec14b5cfe41f26e5f41686a31eb6012758217ef |