Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: astral-sh/ruff-pre-commit
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.5.0
Choose a base ref
...
head repository: astral-sh/ruff-pre-commit
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.5.1
Choose a head ref
  • 2 commits
  • 3 files changed
  • 2 contributors

Commits on Jun 28, 2024

  1. Remove "v" from the Ruff version number in link to release notes (#92)

    ## Summary
    
    Starting with version 0.5.0 of Ruff, the release/tag name doesn't have a
    leading "v". This has broken the link to the release notes that get
    added to the release notes for the pre-commit hook.
    
    This fixes it by stripping any "v" from the version number string.
    
    See #91.
    
    ## Test Plan
    
    Tested in a bash shell:
    ```bash
    bash-5.2$ TAG_NAME=v0.5.0
    bash-5.2$ echo ${TAG_NAME/v}
    0.5.0
    ```
    
    Will otherwise have to be tested on the next Ruff release.
    Tenzer authored Jun 28, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    987f9d7 View commit details

Commits on Jul 5, 2024

  1. Mirror: 0.5.1

    charliermarsh committed Jul 5, 2024
    Copy the full SHA
    f6793c7 View commit details
Showing with 8 additions and 8 deletions.
  1. +1 −1 .github/workflows/main.yml
  2. +6 −6 README.md
  3. +1 −1 pyproject.toml
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ jobs:
echo $TAG_NAME
gh release create "$TAG_NAME" \
--title "$TAG_NAME" \
--notes "See: https://github.com/astral-sh/ruff/releases/tag/$TAG_NAME" \
--notes "See: https://github.com/astral-sh/ruff/releases/tag/${TAG_NAME/v}" \
--latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# ruff-pre-commit

[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![image](https://img.shields.io/pypi/v/ruff/0.5.0.svg)](https://pypi.python.org/pypi/ruff)
[![image](https://img.shields.io/pypi/l/ruff/0.5.0.svg)](https://pypi.python.org/pypi/ruff)
[![image](https://img.shields.io/pypi/pyversions/ruff/0.5.0.svg)](https://pypi.python.org/pypi/ruff)
[![image](https://img.shields.io/pypi/v/ruff/0.5.1.svg)](https://pypi.python.org/pypi/ruff)
[![image](https://img.shields.io/pypi/l/ruff/0.5.1.svg)](https://pypi.python.org/pypi/ruff)
[![image](https://img.shields.io/pypi/pyversions/ruff/0.5.1.svg)](https://pypi.python.org/pypi/ruff)
[![Actions status](https://github.com/astral-sh/ruff-pre-commit/workflows/main/badge.svg)](https://github.com/astral-sh/ruff-pre-commit/actions)

A [pre-commit](https://pre-commit.com/) hook for [Ruff](https://github.com/astral-sh/ruff).
@@ -19,7 +19,7 @@ To run Ruff's [linter](https://docs.astral.sh/ruff/linter) and [formatter](https
```yaml
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.5.0
rev: v0.5.1
hooks:
# Run the linter.
- id: ruff
@@ -32,7 +32,7 @@ To enable lint fixes, add the `--fix` argument to the lint hook:
```yaml
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.5.0
rev: v0.5.1
hooks:
# Run the linter.
- id: ruff
@@ -46,7 +46,7 @@ To run the hooks over Jupyter Notebooks too, add `jupyter` to the list of allowe
```yaml
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.5.0
rev: v0.5.1
hooks:
# Run the linter.
- id: ruff
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
name = "ruff-pre-commit"
version = "0.0.0"
dependencies = [
"ruff==0.5.0",
"ruff==0.5.1",
]

[project.optional-dependencies]