-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 1.03 KB
/
pylint.yaml
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
39
40
---
name: Pylint
on:
pull_request:
push:
workflow_dispatch:
env:
DEFAULT_PYTHON: "3.12"
jobs:
pylint:
name: Pylint
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/[email protected]
- name: 🏗 Set up Poetry
run: pipx install poetry
- name: 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
uses: actions/[email protected]
with:
python-version: ${{ env.DEFAULT_PYTHON }}
cache: "poetry"
- name: 🔄 Synchronize Poetry Lock File
run: poetry lock --no-update || poetry lock
- name: 🏗 Install Python dependencies
run: poetry install --with dev --no-interaction
- name: 🚀 Run Pylint
run: poetry run pylint custom_components/aliexpress_openplatform --ignore=iop --disable=import-error,too-few-public-methods
- name: 🚀 Run Mypy
run: |
poetry run mypy custom_components/aliexpress_openplatform --exclude '^custom_components/aliexpress_openplatform/iop/'