Commit Graph

14 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
Kevin Stillhammer 35619fdbcc Add problem matchers (#26)
Closes: #12
2024-12-08 12:17:50 +01:00
Kevin Stillhammer ec9ad4417f Add lint error in malformed python project (#25) 2024-12-08 11:31:53 +01:00
Kevin Stillhammer efef6ba8fa Move release-drafter.yml to .github (#22)
Fixes `Configuration file .github/release-drafter.yml is not found. The
configuration file must reside in your default branch.`
2024-12-06 13:17:45 +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
Charlie Marsh 701f39cb3f Use Ruff for formatting in CI (#3) 2024-09-29 19:43:26 -04:00
dependabot[bot] 32ddb6ca80 Bump the github-actions group with 2 updates
Bumps the github-actions group with 2 updates: [jakebailey/pyright-action](https://github.com/jakebailey/pyright-action) and [actions/stale](https://github.com/actions/stale).


Updates `jakebailey/pyright-action` from 1 to 2
- [Release notes](https://github.com/jakebailey/pyright-action/releases)
- [Commits](https://github.com/jakebailey/pyright-action/compare/v1...v2)

Updates `actions/stale` from 7 to 9
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v7...v9)

---
updated-dependencies:
- dependency-name: jakebailey/pyright-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-26 02:20:31 +00:00
brucearctor 0cf49cc7a3 Merge pull request #14 from cclauss/patch-1
Keep GitHub Actions up to date with GitHub's Dependabot
2024-02-25 18:19:56 -08:00
Raphael Boidol d1154b06e8 Update checkout action in workflows 2024-02-18 19:31:00 +01:00
Raphael Boidol 06460f5390 Update pre-commit hooks & run formatting 2024-02-18 19:31:00 +01:00
Christian Clauss 58ed8ddf37 Keep GitHub Actions up to date with GitHub's Dependabot
Automatically creates PRs like:
* py2many/py2many#592
---
* https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
* https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem
2024-02-17 13:27:46 +01:00
brucearctor 403a32e32b v1 2023-04-02 20:07:12 -07:00
brucearctor e18ae971cc check-python 2023-04-02 20:05:12 -07:00
brucearctor 6cbe846bf8 initial commit 2023-04-02 19:57:17 -07:00