diff options
| author | Jim Mussared <jim.mussared@gmail.com> | 2023-10-17 12:47:04 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-10-17 13:56:33 +1100 |
| commit | c2361328e156a3de46aa69acdc11d111c26c5c98 (patch) | |
| tree | 4a6ed4ba9802505609c0f57ccd44060450d55257 | |
| parent | 971f1cf987583d5607ec1563f9261b9b7fb0cafa (diff) | |
github/workflows: Pin ruff to 0.1.0 and change flags for new version.
The `--format` flag was changed to `--output-format` in the recent update.
Pin to this version to prevent further updates from breaking (e.g. through
new rules or other changes).
This work was funded through GitHub Sponsors.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
| -rw-r--r-- | .github/workflows/ruff.yml | 4 | ||||
| -rw-r--r-- | .pre-commit-config.yaml | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index 806d95e89..0374d766f 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -6,5 +6,5 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: pip install --user ruff - - run: ruff --format=github . + - run: pip install --user ruff==0.1.0 + - run: ruff check --output-format=github . diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e9815a4b2..bfce6a246 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,6 +12,6 @@ repos: verbose: true stages: [commit-msg] - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.265 + rev: v0.1.0 hooks: - id: ruff |
