Skip to content

Commit 0865b67

Browse files
committed
feat: remove the v from version, to match ruff
Since version `0.5`, ruff has dropped the `v` in its version. This mirrors that.
1 parent 47533c0 commit 0865b67

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
echo $TAG_NAME
5858
gh release create "$TAG_NAME" \
5959
--title "$TAG_NAME" \
60-
--notes "See: https://github.com/astral-sh/ruff/releases/tag/${TAG_NAME/v}" \
60+
--notes "See: https://github.com/astral-sh/ruff/releases/tag/${TAG_NAME}" \
6161
--latest
6262
env:
6363
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ To run Ruff's [linter](https://docs.astral.sh/ruff/linter) and [formatter](https
1919
```yaml
2020
- repo: https://github.com/astral-sh/ruff-pre-commit
2121
# Ruff version.
22-
rev: v0.5.2
22+
rev: 0.5.2
2323
hooks:
2424
# Run the linter.
2525
- id: ruff
@@ -32,7 +32,7 @@ To enable lint fixes, add the `--fix` argument to the lint hook:
3232
```yaml
3333
- repo: https://github.com/astral-sh/ruff-pre-commit
3434
# Ruff version.
35-
rev: v0.5.2
35+
rev: 0.5.2
3636
hooks:
3737
# Run the linter.
3838
- id: ruff
@@ -46,7 +46,7 @@ To run the hooks over Jupyter Notebooks too, add `jupyter` to the list of allowe
4646
```yaml
4747
- repo: https://github.com/astral-sh/ruff-pre-commit
4848
# Ruff version.
49-
rev: v0.5.2
49+
rev: 0.5.2
5050
hooks:
5151
# Run the linter.
5252
- id: ruff

mirror.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ def main():
2222
if subprocess.check_output(["git", "status", "-s"]).strip():
2323
subprocess.run(["git", "add", *paths], check=True)
2424
subprocess.run(["git", "commit", "-m", f"Mirror: {version}"], check=True)
25-
subprocess.run(["git", "tag", f"v{version}"], check=True)
25+
subprocess.run(["git", "tag", f"{version}"], check=True)
2626
else:
27-
print(f"No change v{version}")
27+
print(f"No change {version}")
2828

2929

3030
def get_all_versions() -> list[Version]:
@@ -54,7 +54,7 @@ def replace_pyproject_toml(content: str) -> str:
5454
return re.sub(r'"ruff==.*"', f'"ruff=={version}"', content)
5555

5656
def replace_readme_md(content: str) -> str:
57-
content = re.sub(r"rev: v\d+\.\d+\.\d+", f"rev: v{version}", content)
57+
content = re.sub(r"rev: \d+\.\d+\.\d+", f"rev: {version}", content)
5858
return re.sub(r"/ruff/\d+\.\d+\.\d+\.svg", f"/ruff/{version}.svg", content)
5959

6060
paths = {

0 commit comments

Comments
 (0)