Fix: course creation - prevent comparison error for books with None for shelf_section #165
Workflow file for this run
This file contains hidden or 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: Lint | |
| on: | |
| pull_request: | |
| paths: | |
| - 'bases/**/*.py' | |
| - 'components/**/*.py' | |
| - '.github/workflows/lint.yml' | |
| - 'pyproject.toml' | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install black~=25.0 ruff~=0.15.0 | |
| - name: Run black check | |
| run: | | |
| black --check bases/ components/ | |
| - name: Run ruff | |
| run: | | |
| ruff check bases/ components/ |