Commit Graph

49 Commits

Author SHA1 Message Date
dependabot[bot] cac2f108b2 Bump @types/node from 22.10.1 to 22.10.2 (#29)
Bumps
[@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)
from 22.10.1 to 22.10.2.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@types/node&package-manager=npm_and_yarn&previous-version=22.10.1&new-version=22.10.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-16 17:23:51 +01:00
Kevin Stillhammer 35619fdbcc Add problem matchers (#26)
Closes: #12
2024-12-08 12:17:50 +01:00
dependabot[bot] c9185454fa Bump @types/node from 22.9.3 to 22.10.1 (#20)
Bumps
[@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)
from 22.9.3 to 22.10.1.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@types/node&package-manager=npm_and_yarn&previous-version=22.9.3&new-version=22.10.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-08 11:38:39 +01:00
Kevin Stillhammer a2d5d1ffa4 Set output format to github (#24)
This was accidentally removed in the v2 release
2024-12-08 11:36:31 +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
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
v2 v2.0 v2.0.0
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.
v1.1.1 v1.1 v1
2024-10-01 11:29:08 -05:00
David J. Felix 61703ed12e Fix changed-files for cases where no python files changed (#4)
## Problem
When a PR contains no changed python files, but changed-files is set to
true, ruff will run on all files, including ones not changed.

## Solution
Pass the input through to the script and short circuit to success in
cases where both the flag is set and no python files were changed.
v1.1.0
2024-09-30 13:17:11 -04:00
Charlie Marsh 701f39cb3f Use Ruff for formatting in CI (#3) 2024-09-29 19:43:26 -04: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
dependabot[bot] e88ca0d813 Bump tj-actions/changed-files from 44 to 45 in the github-actions group (#1) 2024-09-29 19:22:18 -04:00
Charlie Marsh 7388145ba9 Update README to reflect fork (#2) 2024-09-29 19:22:10 -04:00
Ferran Fernández Garrido 491342200c Merge pull request #24 from ma-sadeghi/feature/changed-only
Provide support to lint/format changed files only
2024-05-30 17:38:45 +02:00
Amin Sadeghi 79eabade54 Document changed-files keyword in README 2024-04-04 15:34:23 -04:00
Amin Sadeghi 0df4a95686 Exclude non-Python files as part of changed-files action 2024-04-04 15:25:49 -04:00
Amin Sadeghi a9c46eeb9c Exclude non-Python files 2024-04-04 14:53:05 -04:00
Amin Sadeghi 992901c201 First try at implementing only-apply-to-changed-files 2024-04-04 14:40:34 -04:00
brucearctor 47bc0821f5 Merge pull request #19 from yosmoc/configure_check_or_format_mode
support ruff mode argument
2024-03-25 07:30:11 -07:00
brucearctor 6e7156986b Merge branch 'main' into configure_check_or_format_mode 2024-03-25 07:30:03 -07:00
brucearctor 88d6702e4e Merge pull request #18 from zachborboa/patch-1
Clean up section headers
2024-03-21 12:15:54 -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
brucearctor 42fd10b26e Merge pull request #16 from ChartBoost/dependabot/github_actions/github-actions-8ef4cb809c
Bump the github-actions group with 2 updates
2024-02-26 00:11:59 -08: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
brucearctor 4c93cf060a Merge pull request #13 from boidolr/docs-update
Update documentation & build config
2024-02-18 11:34:29 -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
Raphael Boidol c0661673e2 Update README.md
Change links to point to up to date URLs
2024-02-18 19:30:44 +01:00
brucearctor 41f0574bbd Merge pull request #15 from cclauss/patch-2
README.md: Update the Ruff version
2024-02-17 17:37:23 -08: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
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 a0f145b455 Merge pull request #9 from boidolr/main
Switch to `RUFF_OUTPUT_FORMAT`
2023-12-12 11:43:24 -07:00
Raphael Boidol 98cc4a4345 Switch to RUFF_OUTPUT_FORMAT
`RUFF_FORMAT` was deprecated in favor of `RUFF_OUTPUT_FORMAT` in  v0.0.291.
2023-11-24 10:54:45 +01:00
brucearctor 2bc585f125 Merge pull request #3 from YoniMelki/patch-1
Update README.md
2023-06-20 08:54:56 -07: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 403a32e32b v1 2023-04-02 20:07:12 -07:00
brucearctor e18ae971cc check-python v1.0.0 v1.0 2023-04-02 20:05:12 -07:00
brucearctor 6cbe846bf8 initial commit 2023-04-02 19:57:17 -07:00
brucearctor 3d92e63259 Initial commit 2023-03-31 08:38:06 -07:00