Releases: astral-sh/ruff-action
v3.0.1 🌈 Replace toml parsing library
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
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
🐛 Bug fixes
🚀 Enhancements
🧰 Maintenance
- Add lint error in malformed python project @eifinger (#25)
- Move release-drafter.yml to .github @eifinger (#22)
📚 Documentation
⬆️ Dependency updates
- Bump @types/node from 22.10.1 to 22.10.2 @dependabot (#29)
- Bump @types/node from 22.9.3 to 22.10.1 @dependabot (#20)
v2.0.0 🌈 A new start
Summary
Converts the action from a composite to
javascript.
These changes will make it easier to bring in new features.
Changes
- Download the ruff executable for the current platform from the GitHub
releases - Add ruff to the PATH
- Validate the downloaded ruff executable against its checksum
- Cache ruff in the Tool
Cache
to speed up runs on self-hosted runners - 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
What's Changed
- docs: fix references to chartboost action by @DavidJFelix in #7
Full Changelog: v1...v1.1.1
v1.1.0
What's Changed
- Update README to reflect fork by @charliermarsh in #2
- Fix changed-files for cases where no python files changed by @DavidJFelix in #4
New Contributors
- @charliermarsh made their first contribution in #2
- @dependabot made their first contribution in #1
- @DavidJFelix made their first contribution in #4
Full Changelog: v1.0.0...v1.1.0
v1.0.0
This release exists for compatibility with chartboost/ruff-action
.