fix: raise RuntimeError when failed to generate an answer (#94) #74
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: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install ruff black isort mypy | |
| - name: Run Ruff (Lint) | |
| run: ruff check . | |
| - name: Run Black (Format Check) | |
| run: black --check . | |
| - name: Run isort (Import Order Check) | |
| run: isort --check-only . | |
| - name: Run mypy (Type Check) | |
| run: mypy . |