QTempGaussMC: Cleanup sharpening logic (#378) #2243
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: Lint Python code with Ruff & mypy | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "**.py" | |
| - "pyproject.toml" | |
| pull_request: | |
| paths: | |
| - "**.py" | |
| - "pyproject.toml" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| env: | |
| PYTHON_VERSION: 3.14 | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v9.0.0 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: uv sync --locked --extra basic --extra denoise | |
| - name: Run Ruff check | |
| id: ruff_check | |
| run: uv run --no-sync ruff check . | |
| - name: Run Ruff format | |
| id: ruff_format | |
| if: success() || (failure() && steps.ruff_check.conclusion == 'failure') | |
| run: uv run --no-sync ruff format --check --diff | |
| - name: Running mypy | |
| if: success() || (failure() && (steps.ruff_check.conclusion == 'failure' || steps.ruff_format.conclusion == 'failure')) | |
| run: uv run --with onnx --with cuda-python --no-sync mypy . | |
| - name: Post webhook for failure | |
| if: failure() | |
| uses: Jaded-Encoding-Thaumaturgy/discord-failure-notifier@v1 | |
| with: | |
| webhook-url: ${{ secrets.WEBHOOK_URL }} |