updated the prompt so that the correct format is handled by it. Now w… #325
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: Backend Lint | |
| on: [push] | |
| jobs: | |
| pylint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - name: Set PYTHONPATH | |
| run: echo "PYTHONPATH=$(pwd)/backend" >> $GITHUB_ENV | |
| - name: Install dependencies | |
| working-directory: backend | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install pylint | |
| - name: Run Pylint | |
| working-directory: backend | |
| run: | | |
| pylint --rcfile=../.pylintrc $(git ls-files '*.py') | |
| mypy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - name: Set PYTHONPATH | |
| run: echo "PYTHONPATH=$(pwd)/backend" >> $GITHUB_ENV | |
| - name: Install MyPy and dependencies | |
| working-directory: backend | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install mypy | |
| - name: Run MyPy | |
| run: | | |
| mypy backend |