Update README.md #9
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: Code quality. | |
on: [push, pull_request] | |
jobs: | |
code-imports-typing-style: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-versions: [ '3.10' ] | |
timeout-minutes: 8 | |
steps: | |
- name: Checkout code. | |
uses: actions/checkout@v3 | |
- name: Setup Python ${{ matrix.python-versions }}. | |
uses: actions/setup-python@v3 | |
with: | |
python-versions: ${{ matrix.python-versions }} | |
- name: Install dependencies. | |
run: | | |
python -m pip install --upgrade pip | |
pip install pylint mypy isort | |
- name: Code style. | |
run: | | |
echo 'Files to be linted: ' | |
echo $(git ls-files '*.py') | |
pylint -v $(git ls-files '*.py') | |
- name: Type checking. | |
run: | | |
mypy \ | |
sanitize_video_titles.py \ | |
random_clip_generator.py | |
- name: Import ordering. | |
run: | | |
isort --check . |