| 1 |
name: lint |
| 2 |
|
| 3 |
on: ["push", "pull_request"] |
| 4 |
|
| 5 |
jobs: |
| 6 |
lint: |
| 7 |
# We want to run on external PRs, but not on our own internal PRs as they'll be run |
| 8 |
# by the push to the branch. |
| 9 |
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository |
| 10 |
|
| 11 |
runs-on: ubuntu-slim |
| 12 |
steps: |
| 13 |
- name: Checkout |
| 14 |
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 |
| 15 |
|
| 16 |
- name: ruff check |
| 17 |
run: | |
| 18 |
pipx run ruff check --diff msgpack/ test/ setup.py |
| 19 |
|
| 20 |
- name: ruff format |
| 21 |
run: | |
| 22 |
pipx run ruff format --diff msgpack/ test/ setup.py |