fix: API endpoints return JSON 404 instead of HTML when resource not found #30950
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: Ruff Style Check | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, auto_merge_enabled] | |
| paths: | |
| - "**/*.py" | |
| jobs: | |
| lint: | |
| name: Ruff Style Check | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: | |
| - "3.13" | |
| steps: | |
| - name: Check out the code at a specific ref | |
| uses: actions/checkout@v6 | |
| - name: "Setup Environment" | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| python-version: ${{ matrix.python-version }} | |
| prune-cache: false | |
| - name: Register problem matcher | |
| run: echo "::add-matcher::.github/workflows/matchers/ruff.json" | |
| - name: Run Ruff Check | |
| run: uv run --only-dev ruff check --output-format=github . | |