Skip to content
name: Standard code checks (MyPy/Pylint/Black/Isort)
on: [push, pull_request]
jobs:
checks:
if: "!contains(github.event.commits[0].message, '[skip ci]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: 'poetry'
- name: Install dependencies
run: |
poetry env use "3.11"
poetry install
- name: Run Pylint check
run: |
poetry run pylint --fail-under 10 --limit-inference-results 0 --disable=R0917,W0511 ./spotdl
- name: Run MyPy check
run: |
poetry run mypy --ignore-missing-imports --follow-imports silent --install-types --non-interactive ./spotdl
- name: Run Black check
run: |
poetry run black --check ./spotdl
- name: Run isort check
run: |
poetry run isort --check --diff ./spotdl