From 3c6d40da8d90069e86c0ba3942239d773aadad1a Mon Sep 17 00:00:00 2001 From: Github Actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 29 Mar 2023 21:20:05 +0000 Subject: [PATCH 1/3] Mirror: 0.0.260 --- .version | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.version b/.version index 55ac891..73b579c 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -0.0.259 +0.0.260 diff --git a/setup.py b/setup.py index c0bad11..4a0477e 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.259'], + install_requires=['ruff==0.0.260'], ) From 6a0efc1edf44dd5707889a0aff25d618cd67cb46 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Mon, 3 Apr 2023 19:20:44 -0400 Subject: [PATCH 2/3] Touch up README --- README.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 2a82c7f..8d11e66 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,6 @@ A [pre-commit](https://pre-commit.com/) hook for [Ruff](https://github.com/charl Distributed as a standalone repository to enable installing Ruff via prebuilt wheels from [PyPI](https://pypi.org/project/ruff/). -For pre-commit: see https://github.com/pre-commit/pre-commit - -For Ruff: see https://github.com/charliermarsh/ruff - ### Using Ruff with pre-commit Add this to your `.pre-commit-config.yaml`: @@ -16,7 +12,7 @@ Add this to your `.pre-commit-config.yaml`: ```yaml - repo: https://github.com/charliermarsh/ruff-pre-commit # Ruff version. - rev: 'v0.0.257' + rev: 'v0.0.260' hooks: - id: ruff ``` @@ -26,14 +22,16 @@ Or, to enable autofix: ```yaml - repo: https://github.com/charliermarsh/ruff-pre-commit # Ruff version. - rev: 'v0.0.257' + rev: 'v0.0.260' hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] ``` -Note that Ruff's pre-commit hook should run before Black, isort, and other -formatting tools. +Ruff's pre-commit hook should be placed after other formatting tools, such as Black and isort, +_unless_ you enable autofix, in which case, Ruff's pre-commit hook should run _before_ Black, isort, +and other formatting tools, as Ruff's autofix behavior can output code changes that require +reformatting. ## License From f6346ef27faac608d493bf3926528b308d175d9e Mon Sep 17 00:00:00 2001 From: Github Actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 5 Apr 2023 03:18:05 +0000 Subject: [PATCH 3/3] Mirror: 0.0.261 --- .version | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.version b/.version index 73b579c..e7b2391 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -0.0.260 +0.0.261 diff --git a/setup.py b/setup.py index 4a0477e..52a6d10 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.260'], + install_requires=['ruff==0.0.261'], )