Commit Graph

21 Commits

Author SHA1 Message Date
Kevin Stillhammer 7a82f1f7e4 Default to ruff-version from pyproject.toml (#30)
Closes: #9 

Changes the default behavior to:

- Search for a pyproject.toml in the repo root
- Search in project.dependencies and dependency-groups.dev for ruff
- If none is found use latest

Support for requirements.txt files can be added later
2024-12-23 11:07:46 +01:00
Christian Clauss e5ab5d43a6 README.md: astral-sh/ruff-action@v1 --> v2 (#21)
README.md upgraded to match
https://github.com/astral-sh/ruff-action/releases
```diff
- - uses: astral-sh/ruff-action@v1
+ - uses: astral-sh/ruff-action@v2
```
2024-12-06 08:49:52 +01:00
Kevin Stillhammer f2e3221107 Convert from composite to typescript (#17)
# Summary

Converts the action from a [composite to
javascript](https://docs.github.com/en/actions/sharing-automations/creating-actions/about-custom-actions#types-of-actions).
Most importantly to make use of prebuilt libraries and helpers like
[actions/toolkit](https://github.com/actions/toolkit).

The structure and features are modeled after
[astral-sh/setup-uv](https://github.com/astral-sh/setup-uv)

## 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](https://github.com/actions/toolkit/tree/main/packages/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:

```yaml
- 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 }}
```

This was tested here:
https://github.com/astral-sh/ruff-action/actions/runs/12017035736/job/33498508269
2024-12-03 17:18:31 +01:00
David J. Felix d0a0e814ec docs: fix references to chartboost action (#7)
Minor fix to documentation -- looks like you missed a few chartboost
references.
2024-10-01 11:29:08 -05:00
Charlie Marsh ad8ad9ec2e Update some documentation 2024-09-29 19:39:38 -04:00
Charlie Marsh beb1d37bb7 Update README.md 2024-09-29 19:24:56 -04:00
Charlie Marsh 7e5f451d8a Update README.md 2024-09-29 19:24:25 -04:00
Charlie Marsh 7388145ba9 Update README to reflect fork (#2) 2024-09-29 19:22:10 -04:00
Amin Sadeghi 79eabade54 Document changed-files keyword in README 2024-04-04 15:34:23 -04:00
brucearctor 6e7156986b Merge branch 'main' into configure_check_or_format_mode 2024-03-25 07:30:03 -07:00
Yoshihisa Mochihara e31dbd6695 Add ruff format example in README 2024-03-19 19:38:06 +01:00
Yoshihisa Mochihara f8abd91ecb Revert "support ruff mode Argument"
This reverts commit 17a2e52c32.
2024-03-19 19:36:55 +01:00
Yoshihisa Mochihara 17a2e52c32 support ruff mode Argument
Users can now specify the mode of ruff to be 'check' or 'format' using the mode input.
2024-03-13 00:07:19 +01:00
Zach Borboa 38ef108542 Clean up section headers 2024-03-07 05:05:40 -05:00
Raphael Boidol c0661673e2 Update README.md
Change links to point to up to date URLs
2024-02-18 19:30:44 +01:00
Christian Clauss 5619897516 Update README.md 2024-02-18 01:44:15 +01:00
Christian Clauss b22a8e1c0d README.md: Update the Ruff version 2024-02-17 13:33:54 +01:00
Yoni Melki 1c2f7b23b4 Update README.md 2023-06-18 21:25:59 +03:00
brucearctor 9a777ad092 args 2023-04-03 10:23:03 -07:00
brucearctor ed9d6e65a4 cleaned 2023-04-02 20:34:03 -07:00
brucearctor 3d92e63259 Initial commit 2023-03-31 08:38:06 -07:00