From ec8193bd5859db2ddb0fb0b16c90143cd763a5b5 Mon Sep 17 00:00:00 2001 From: Github Actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 8 Jun 2023 03:22:37 +0000 Subject: [PATCH 01/11] Bump README.md version to 0.0.272 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1fa61f9..b6abf5b 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,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.272 hooks: - id: ruff ``` @@ -22,7 +22,7 @@ Or, to enable autofix: ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.0.271 + rev: v0.0.272 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 8698dbc7cde36009ea21f55ea0db18a8f6d50822 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Fri, 16 Jun 2023 15:01:33 -0400 Subject: [PATCH 02/11] Add badges to README (#40) --- README.md | 12 ++++++++++++ update_version.py | 6 ++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b6abf5b..ed54090 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/0.0.272/ruff.svg)](https://pypi.python.org/pypi/ruff) +[![image](https://img.shields.io/pypi/l/0.0.272/ruff.svg)](https://pypi.python.org/pypi/ruff) +[![image](https://img.shields.io/pypi/pyversions/0.0.272/ruff.svg)](https://pypi.python.org/pypi/ruff) +[![Actions status](https://github.com/astral-sh/ruff-pre-commit/workflows/CI/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 @@ -36,3 +42,9 @@ reformatting. ## License MIT + +
+ + + +
diff --git a/update_version.py b/update_version.py index 2c83647..9a78dde 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"/\d+\.\d+\.\d+/ruff\.svg", f"/{rev}/ruff.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]) From 0afdbd1c797e167f0994e69a58b964e984d93aee Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Fri, 16 Jun 2023 22:17:26 -0400 Subject: [PATCH 03/11] Add issue and PR templates (#41) --- .github/ISSUE_TEMPLATE.md | 10 ++++++++++ .github/PULL_REQUEST_TEMPLATE.md | 15 +++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md 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 + + From ec6bc276b88a82586c0fa7eb51f55b6c1380a5af Mon Sep 17 00:00:00 2001 From: Github Actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 20 Jun 2023 20:34:00 +0000 Subject: [PATCH 04/11] Mirror: 0.0.273 --- .version | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.version b/.version index 66c3757..227a930 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -0.0.272 +0.0.273 diff --git a/setup.py b/setup.py index 9571ded..29113e0 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.273'], ) From 42ad6adf01c53a0c03303359e9ecf6aeb056b41d Mon Sep 17 00:00:00 2001 From: Github Actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 20 Jun 2023 20:34:01 +0000 Subject: [PATCH 05/11] Bump README.md version to 0.0.273 --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ed54090..3a5e4ad 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # 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/0.0.272/ruff.svg)](https://pypi.python.org/pypi/ruff) -[![image](https://img.shields.io/pypi/l/0.0.272/ruff.svg)](https://pypi.python.org/pypi/ruff) -[![image](https://img.shields.io/pypi/pyversions/0.0.272/ruff.svg)](https://pypi.python.org/pypi/ruff) +[![image](https://img.shields.io/pypi/v/0.0.273/ruff.svg)](https://pypi.python.org/pypi/ruff) +[![image](https://img.shields.io/pypi/l/0.0.273/ruff.svg)](https://pypi.python.org/pypi/ruff) +[![image](https://img.shields.io/pypi/pyversions/0.0.273/ruff.svg)](https://pypi.python.org/pypi/ruff) [![Actions status](https://github.com/astral-sh/ruff-pre-commit/workflows/CI/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). @@ -18,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.272 + rev: v0.0.273 hooks: - id: ruff ``` @@ -28,7 +28,7 @@ Or, to enable autofix: ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.0.272 + rev: v0.0.273 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From ba0094c234f1bbb097ec9e50d07c5997c26ddfe1 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Tue, 20 Jun 2023 16:38:36 -0400 Subject: [PATCH 06/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3a5e4ad..cd2e28a 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![image](https://img.shields.io/pypi/v/0.0.273/ruff.svg)](https://pypi.python.org/pypi/ruff) [![image](https://img.shields.io/pypi/l/0.0.273/ruff.svg)](https://pypi.python.org/pypi/ruff) [![image](https://img.shields.io/pypi/pyversions/0.0.273/ruff.svg)](https://pypi.python.org/pypi/ruff) -[![Actions status](https://github.com/astral-sh/ruff-pre-commit/workflows/CI/badge.svg)](https://github.com/astral-sh/ruff-pre-commit/actions) +[![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). From 026315ed3dc2bfb60d8964ee3f727ac2a32ff5f1 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Tue, 20 Jun 2023 16:39:19 -0400 Subject: [PATCH 07/11] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cd2e28a..6e44a8c 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # 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/0.0.273/ruff.svg)](https://pypi.python.org/pypi/ruff) -[![image](https://img.shields.io/pypi/l/0.0.273/ruff.svg)](https://pypi.python.org/pypi/ruff) -[![image](https://img.shields.io/pypi/pyversions/0.0.273/ruff.svg)](https://pypi.python.org/pypi/ruff) +[![image](https://img.shields.io/pypi/v/ruff/0.0.273.svg)](https://pypi.python.org/pypi/ruff) +[![image](https://img.shields.io/pypi/l/ruff/0.0.273.svg)](https://pypi.python.org/pypi/ruff) +[![image](https://img.shields.io/pypi/pyversions/ruff/0.0.273.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). From 17c401c7cc6cc682594e58e0185880f608a6466a Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Tue, 20 Jun 2023 16:40:23 -0400 Subject: [PATCH 08/11] Update update_version.py --- update_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_version.py b/update_version.py index 9a78dde..b98868f 100644 --- a/update_version.py +++ b/update_version.py @@ -10,7 +10,7 @@ def main(): readme = readme_md.read_text() rev = Path(".version").read_text().strip() readme = re.sub(r"rev: v\d+\.\d+\.\d+", f"rev: v{rev}", readme) - readme = re.sub(r"/\d+\.\d+\.\d+/ruff\.svg", f"/{rev}/ruff.svg", readme) + readme = re.sub(r"/ruff/\d+\.\d+\.\d+\.svg", f"/ruff/{rev}.svg", readme) readme_md.write_text(readme) # Only commit on change. From bfba38bcf2abb1014f2e19c12bb4f584204bb3c4 Mon Sep 17 00:00:00 2001 From: Github Actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 21 Jun 2023 04:01:44 +0000 Subject: [PATCH 09/11] Mirror: 0.0.274 --- .version | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.version b/.version index 227a930..b8dd2cf 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -0.0.273 +0.0.274 diff --git a/setup.py b/setup.py index 29113e0..9d553d7 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.273'], + install_requires=['ruff==0.0.274'], ) From 770e3ceae230e989c8337eb434b7707d5f796e3d Mon Sep 17 00:00:00 2001 From: Github Actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 21 Jun 2023 04:01:45 +0000 Subject: [PATCH 10/11] Bump README.md version to 0.0.274 --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6e44a8c..a20ad8d 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # 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.273.svg)](https://pypi.python.org/pypi/ruff) -[![image](https://img.shields.io/pypi/l/ruff/0.0.273.svg)](https://pypi.python.org/pypi/ruff) -[![image](https://img.shields.io/pypi/pyversions/ruff/0.0.273.svg)](https://pypi.python.org/pypi/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). @@ -18,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.273 + rev: v0.0.274 hooks: - id: ruff ``` @@ -28,7 +28,7 @@ Or, to enable autofix: ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.0.273 + rev: v0.0.274 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 1ac904bbe451ef0b5a437d1d3b331a244c1f272c Mon Sep 17 00:00:00 2001 From: Github Actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 22 Jun 2023 20:21:38 +0000 Subject: [PATCH 11/11] Mirror: 0.0.275 --- .version | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.version b/.version index b8dd2cf..1887e7e 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -0.0.274 +0.0.275 diff --git a/setup.py b/setup.py index 9d553d7..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.274'], + install_requires=['ruff==0.0.275'], )