Bump freezegun from 1.5.3 to 1.5.5 #4038
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: Linting | |
on: | |
pull_request: | |
paths: | |
- 'geotrek/**' # if geotrek code change | |
- '.github/workflows/lint.yml' # if lint workflow change | |
- 'requirements-dev.txt' # if requirements-dev.txt change | |
- 'ruff.toml' # if lint tools configuration change | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
jobs: | |
migrations: | |
name: Checking SRID in migrations files | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
test $(ls geotrek/*/migrations/*.py | xargs grep -l srid | xargs grep -L SRID | wc -l) -eq 0 | |
flake8: | |
name: Checking lint rules | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v6 | |
with: | |
version: "latest" | |
python-version: "3.10" | |
enable-cache: true | |
cache-suffix: "ruff" | |
activate-environment: true | |
- name: Install dependencies | |
run: | | |
uv pip install -c requirements-dev.txt ruff | |
- name: Check linting | |
run: | | |
ruff check geotrek | |
- name: Check format | |
run: | | |
ruff format --check geotrek |