Merge pull request #29455 from ballard26/rp-serv-para #11512
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 | |
| on: | |
| push: | |
| branches: [dev] | |
| paths: | |
| - '**.py' | |
| - '.github/workflows/lint-python.yml' | |
| tags-ignore: | |
| - '**' | |
| pull_request: | |
| paths: | |
| - '**.py' | |
| - '.github/workflows/lint-python.yml' | |
| merge_group: | |
| types: [checks_requested] | |
| jobs: | |
| py: | |
| name: Lint python files | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Ruff format --check | |
| uses: astral-sh/ruff-action@v3 | |
| with: | |
| args: "format --check --diff" | |
| version: "0.12.10" | |
| - name: Ruff check (/tests only) | |
| uses: astral-sh/ruff-action@v3 | |
| with: | |
| args: "check --output-format=github" | |
| src: "./tests" | |
| version: "0.12.10" |