Skip to content

Releases: astral-sh/ruff-action

v4.0.0 🌈 Immutable releases, node24 and manifest-file

Choose a tag to compare

@github-actions github-actions released this 12 Apr 11:55
Immutable release. Only release title and notes can be modified.
0ce1b0b

This is the first immutable release of ruff-action 🥳

All future releases are also immutable, if you want to know more about what this means checkout the docs.

This action now also supports the mainfest-file input which lets you define custom ruff versions and custom download locations.

Last but not least this action now runs on node24. This might be a breaking change on very old self-hosted runners.

🚨 Breaking changes

🚀 Enhancements

🧰 Maintenance

⬆️ Dependency updates

v3.6.1 🌈 fix automatic minor tag updates

Choose a tag to compare

@github-actions github-actions released this 30 Jan 18:45
4919ec5

Changes

This is just a bugfix release for the release process

  • fix: persist credentials for git push in update-major-minor-tags workflow @eifinger-bot (#312)

🧰 Maintenance

v3.6.0 🌈 search for pyproject.toml in parent dirs

Choose a tag to compare

@github-actions github-actions released this 30 Jan 08:51
aedff8d

Changes

This release brings some bug fixes like

  • support for hashes in requirement.txt files
  • ignoring environment markers in version specifiers like "ruff~=0.13 ; python_version >= '3.11'" to prevent them from breaking the version resolver. If you have a usecase for needing the environment markers to derive the correct ruff version this action should use please add your voice to #256

In case no pyproject.toml is in the configured src this action now also walks up the directory tree to search for it, just like the "normal" ruff does. This is limited to the current workspace to prevent this action from trying to access private data outside the GitHub Actions runner.

EDIT: Oh I forgot to mention that the error matcher now properly detects invalid formatting and displays the correct line number etc in the GitHub UI.

🐛 Bug fixes

🚀 Enhancements

  • Update the ruff-format matcher to properly extract all info @eifinger (#293)

🧰 Maintenance

⬆️ Dependency updates

v3.5.1 🌈 Improve error messages on GitHub API errors

Choose a tag to compare

@github-actions github-actions released this 12 Aug 19:56
57714a7

Changes

Recent GitHub outages showed that we can improve the error messages to tell the user what happened and what can be done about it.

🐛 Bug fixes

🧰 Maintenance

⬆️ Dependency updates

v3.5.0 🌈 support reading Ruff version from tools.poetry.dependencies

Choose a tag to compare

@github-actions github-actions released this 14 Jul 08:06
0c50076

Changes

A big thank you to @G-Rath for his contribution 🥳

🚀 Enhancements

  • feat: support reading Ruff version from tools.poetry.dependencies @G-Rath (#177)

🧰 Maintenance

⬆️ Dependency updates

v3.4.0 🌈 Add support for pep440 version specifiers

Choose a tag to compare

@github-actions github-actions released this 26 May 20:52
eaf0ecd

Changes

With this release you can now also define your ruff version using pep440 specifier:

- name: Install a pep440-specifier-satisfying version of ruff
  uses: astral-sh/ruff-action@v3
  with:
    version: ">=0.11.10,<0.12.0"

🚀 Enhancements

🧰 Maintenance

📚 Documentation

⬆️ Dependency updates

v3.3.1 🌈 Support ruff versions 0.1.8-0.4.7

Choose a tag to compare

@github-actions github-actions released this 07 May 15:00
84f83ec

Changes

This bugfix release enables support for ruff versions 0.1.8-0.4.7.
They have a different release URL and lead to a HTTP 404 before.

🐛 Bug fixes

🧰 Maintenance

📚 Documentation

v3.3.0 🌈 Support for reading the ruff version from Poetry groups

Choose a tag to compare

@github-actions github-actions released this 27 Apr 13:08
c6bea56

Changes

Thanks to @scootermon we now also find the desired ruff versions in poetry groups in pyproject.toml:

[tool.poetry.group.dev.dependencies]
ruff = "0.8.3"

🚀 Enhancements

  • Add support for reading the ruff version from Poetry groups @scootermon (#127)

🧰 Maintenance

📚 Documentation

  • Mention the --diff flag for format --check @Avasam (#104)

v3.2.2 🌈 Maintenance and update known checksums

Choose a tag to compare

@github-actions github-actions released this 16 Mar 20:48
9828f49

Changes

This release only changes internals and updates known checksums

🧰 Maintenance

📚 Documentation

⬆️ Dependency updates

v3.2.1 🌈 Bump dependencies to fix vulnerabilites

Choose a tag to compare

@github-actions github-actions released this 18 Feb 18:15
39f75e5

Changes

🧰 Maintenance

⬆️ Dependency updates