Skip to content

Releases: astral-sh/ruff-action

v3.0.1 🌈 Replace toml parsing library

23 Dec 18:08
31a5185
Compare
Choose a tag to compare

Changes

We used a toml parsing library which did not support the full TOML spec.

Thank you @AbstractUmbra for reporting this!

🐛 Bug fixes

v3.0.0 🎄 Better defaults for christmas

23 Dec 10:18
7a82f1f
Compare
Choose a tag to compare

Changes

This years christmas 🎄 release adds new defaults to make the life for first-time and most users easier.

We now default to search for a pyproject.toml file in the repository root to determine which version of ruff to use.
We search inside dependencies and dependency-groups.dev. If no ruff version is found latest is used.
You can specify a direct path to your pyproject.toml file with the version-file input.
This can be a breaking change for some users.

We also correctly set the output format to github again, this was an oversight in the v2.0.0 release.

A great new functionality is that linting and formatting errors are now annotated in your pull requests.
Thank you @gegoune for supplying the problem matcher.

Also a big thank you for everyone participating in the issues and bringing up bug reports, enhancement ideas and PRs!

🚨 Breaking changes

  • Default to ruff-version from pyproject.toml @eifinger (#30)

🐛 Bug fixes

🚀 Enhancements

🧰 Maintenance

📚 Documentation

  • README.md: astral-sh/ruff-action@v1 --> v2 @cclauss (#21)

⬆️ Dependency updates

v2.0.0 🌈 A new start

03 Dec 16:21
f2e3221
Compare
Choose a tag to compare

Summary

Converts the action from a composite to
javascript
.

These changes will make it easier to bring in new features.

Changes

  1. Download the ruff executable for the current platform from the GitHub
    releases
  2. Add ruff to the PATH
  3. Validate the downloaded ruff executable against its checksum
  4. Cache ruff in the Tool
    Cache

    to speed up runs on self-hosted runners
  5. Support semver ranges to define the ruff version to install

🚨 Breaking changes

Removes the changed-files input.

This input could previously be used to run ruff only on files changed in
a PR. The functionality was implemented by calling another action. This
repo should focus on providing a quick and easy way to use ruff in
GitHub Actions, not add more functionality on top of ruff.

The previous functionality can be replicated with:

- uses: actions/checkout@v4
- name: Get changed files
  id: changed-files
  uses: tj-actions/changed-files@v45
  with:
    files: |
      **.py
- name: Run ruff on changed files only 
  uses: astral-sh/ruff-action@v2
  with:
    src: ${{ steps.changed-files.outputs.all_changed_files }}

v1.1.1

14 Oct 20:35
d0a0e81
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1...v1.1.1

v1.1.0

30 Sep 17:24
61703ed
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.0.0...v1.1.0

v1.0.0

30 Sep 17:22
Compare
Choose a tag to compare

This release exists for compatibility with chartboost/ruff-action.