Skip to content

Update backend/.env.example #336

Update backend/.env.example

Update backend/.env.example #336

Workflow file for this run

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