feat: use internal API handler #177
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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/' |