diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..3452165 --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,10 @@ + diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..5b64555 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,15 @@ + + +## Summary + + + +## Test Plan + + diff --git a/.version b/.version index 66c3757..1887e7e 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -0.0.272 +0.0.275 diff --git a/README.md b/README.md index 1fa61f9..a20ad8d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,11 @@ # ruff-pre-commit +[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) +[![image](https://img.shields.io/pypi/v/ruff/0.0.274.svg)](https://pypi.python.org/pypi/ruff) +[![image](https://img.shields.io/pypi/l/ruff/0.0.274.svg)](https://pypi.python.org/pypi/ruff) +[![image](https://img.shields.io/pypi/pyversions/ruff/0.0.274.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/charliermarsh/ruff). Distributed as a standalone repository to enable installing Ruff via prebuilt wheels from @@ -12,7 +18,7 @@ Add this to your `.pre-commit-config.yaml`: ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.0.271 + rev: v0.0.274 hooks: - id: ruff ``` @@ -22,7 +28,7 @@ Or, to enable autofix: ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.0.271 + rev: v0.0.274 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] @@ -36,3 +42,9 @@ reformatting. ## License MIT + +
+ + + +
diff --git a/setup.py b/setup.py index 9571ded..2d5710f 100644 --- a/setup.py +++ b/setup.py @@ -6,5 +6,5 @@ setup( name='pre_commit_placeholder_package', version='0.0.0', - install_requires=['ruff==0.0.272'], + install_requires=['ruff==0.0.275'], ) diff --git a/update_version.py b/update_version.py index 2c83647..b98868f 100644 --- a/update_version.py +++ b/update_version.py @@ -9,9 +9,11 @@ def main(): readme_md = Path("README.md") readme = readme_md.read_text() rev = Path(".version").read_text().strip() - readme = re.sub("rev: .*", f"rev: v{rev}", readme) + readme = re.sub(r"rev: v\d+\.\d+\.\d+", f"rev: v{rev}", readme) + readme = re.sub(r"/ruff/\d+\.\d+\.\d+\.svg", f"/ruff/{rev}.svg", readme) readme_md.write_text(readme) - # Only commit on change + + # Only commit on change. # https://stackoverflow.com/a/9393642/3549270 if check_output(["git", "status", "-s"]).strip(): check_call(["git", "add", readme_md])