diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml index f769beb..1ff5722 100644 --- a/.github/workflows/actionlint.yml +++ b/.github/workflows/actionlint.yml @@ -5,12 +5,12 @@ on: paths: - '.github/workflows/**' pull_request: - paths: + paths: - '.github/workflows/**' jobs: actionlint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: reviewdog/action-actionlint@v1 diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index ddd60ca..cefbc45 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -6,7 +6,7 @@ jobs: clean-python: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: psf/black@stable - uses: chartboost/ruff-action@v1 - uses: jakebailey/pyright-action@v1 diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 22d3e9b..e43f06c 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -23,4 +23,4 @@ jobs: close-pr-message: "This pull request has been closed due to lack of activity." days-before-pr-stale: ${{ env.PR_STALE_DAYS }} days-before-pr-close: ${{ env.PR_CLOSE_DAYS }} - delete-branch: true \ No newline at end of file + delete-branch: true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index acb140e..6286fc1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,23 +1,23 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/rhysd/actionlint - rev: v1.6.23 + rev: v1.6.26 hooks: - id: actionlint - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 24.1.1 hooks: - id: black - - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: 'v0.0.260' + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: 'v0.2.1' hooks: - id: ruff - repo: https://github.com/RobertCraigie/pyright-python - rev: v1.1.301 + rev: v1.1.350 hooks: - - id: pyright \ No newline at end of file + - id: pyright diff --git a/README.md b/README.md index 94040ab..7adb850 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A GitHub Action for Ruff Ruff can now be used as a [GitHub Action](https://github.com/features/actions). -This action is commonly used as a pass/fail test to ensure your repository stays clean, abiding the [Rules](https://beta.ruff.rs/docs/rules/) specified in your configuration. Though it runs `ruff`, the action can do anything `ruff` can (ex, fix). +This action is commonly used as a pass/fail test to ensure your repository stays clean, abiding the [Rules](https://docs.astral.sh/ruff/rules/) specified in your configuration. Though it runs `ruff`, the action can do anything `ruff` can (ex, fix). Compatibility This action is known to support all GitHub-hosted runner OSes. In addition, only published versions of Ruff are supported (i.e. whatever is available on PyPI). @@ -43,4 +43,4 @@ The Ruff action can be customized via optional configuration parameters passed t args: --select B ``` -See [Configuring Ruff](https://github.com/charliermarsh/ruff/blob/main/docs/configuration.md) for details +See [Configuring Ruff](https://github.com/astral-sh/ruff/blob/main/docs/configuration.md) for details diff --git a/action/main.py b/action/main.py index 032e484..1e0e74f 100644 --- a/action/main.py +++ b/action/main.py @@ -1,4 +1,5 @@ """GitHub Action for Ruff.""" + import os import re import shlex diff --git a/pyproject.toml b/pyproject.toml index d1a44dd..f267bdf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,4 +51,4 @@ reportMissingTypeStubs = false reportInvalidStringEscapeSequence = false pythonVersion = "3.11" -pythonPlatform = "Linux" \ No newline at end of file +pythonPlatform = "Linux"