Skip to content

Fix CSP configuration for django-csp 4 #3642

Fix CSP configuration for django-csp 4

Fix CSP configuration for django-csp 4 #3642

Workflow file for this run

name: Python linting
on:
push:
branches:
- main
paths:
- pontoon/**.py
- .github/workflows/py-lint.yml
- requirements/dev.txt
- ruff.toml
pull_request:
branches:
- main
paths:
- pontoon/**.py
- .github/workflows/py-lint.yml
- requirements/dev.txt
- ruff.toml
workflow_dispatch:
permissions: {}
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: '3.13'
- name: Set up uv
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
enable-cache: true
cache-dependency-glob: |
**/requirements/dev.txt
# Version should match the one used in docker/Dockerfile*
version: "0.11.32"
- name: Install Dependencies
run: uv pip install -r requirements/dev.txt
env:
UV_SYSTEM_PYTHON: 1
- name: ruff lint
run: ruff check
- name: ruff format
run: ruff format --check