Make --save-errors append to file instead of overwriting (#2198) #1584
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: 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: Check for docstring's | |
run: | | |
poetry run pylint --limit-inference-results 0 --enable missing-function-docstring missing-module-docstring missing-class-docstring empty-docstring --disable=all ./spotdl | |
- name: Run Pylint check | |
run: | | |
poetry run pylint --fail-under 10 --limit-inference-results 0 ./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 |