diff --git a/Cargo.lock b/Cargo.lock index 37fced4501..25f574f27f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -810,7 +810,7 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flake8-to-ruff" -version = "0.1.3" +version = "0.1.4" dependencies = [ "anyhow", "clap", @@ -2060,7 +2060,7 @@ dependencies = [ [[package]] name = "ruff_cli" -version = "0.1.3" +version = "0.1.4" dependencies = [ "annotate-snippets 0.9.1", "anyhow", @@ -2196,7 +2196,7 @@ dependencies = [ [[package]] name = "ruff_linter" -version = "0.1.3" +version = "0.1.4" dependencies = [ "aho-corasick", "annotate-snippets 0.9.1", @@ -2447,7 +2447,7 @@ dependencies = [ [[package]] name = "ruff_shrinking" -version = "0.1.3" +version = "0.1.4" dependencies = [ "anyhow", "clap", diff --git a/README.md b/README.md index adeb99b4db..b7229ca496 100644 --- a/README.md +++ b/README.md @@ -148,10 +148,9 @@ ruff format @arguments.txt # Format using an input file, treating its Ruff can also be used as a [pre-commit](https://pre-commit.com/) hook via [`ruff-pre-commit`](https://github.com/astral-sh/ruff-pre-commit): ```yaml -# Run the Ruff linter. - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.1.3 + rev: v0.1.4 hooks: # Run the Ruff linter. - id: ruff diff --git a/crates/flake8_to_ruff/Cargo.toml b/crates/flake8_to_ruff/Cargo.toml index 2d9ba8551c..f023a98f08 100644 --- a/crates/flake8_to_ruff/Cargo.toml +++ b/crates/flake8_to_ruff/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "flake8-to-ruff" -version = "0.1.3" +version = "0.1.4" description = """ Convert Flake8 configuration files to Ruff configuration files. """ diff --git a/crates/ruff_cli/Cargo.toml b/crates/ruff_cli/Cargo.toml index 57d2cdf5c7..74e99f5199 100644 --- a/crates/ruff_cli/Cargo.toml +++ b/crates/ruff_cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_cli" -version = "0.1.3" +version = "0.1.4" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/crates/ruff_linter/Cargo.toml b/crates/ruff_linter/Cargo.toml index 73e9344d7e..178c3bcd6d 100644 --- a/crates/ruff_linter/Cargo.toml +++ b/crates/ruff_linter/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_linter" -version = "0.1.3" +version = "0.1.4" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/crates/ruff_shrinking/Cargo.toml b/crates/ruff_shrinking/Cargo.toml index 8c6276e182..598d363d11 100644 --- a/crates/ruff_shrinking/Cargo.toml +++ b/crates/ruff_shrinking/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_shrinking" -version = "0.1.3" +version = "0.1.4" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/docs/integrations.md b/docs/integrations.md index 9d8cb4f449..398a2078e7 100644 --- a/docs/integrations.md +++ b/docs/integrations.md @@ -12,18 +12,18 @@ which supports fix actions, import sorting, and more. Ruff can be used as a [pre-commit](https://pre-commit.com) hook via [`ruff-pre-commit`](https://github.com/astral-sh/ruff-pre-commit): ```yaml -# Run the Ruff formatter. -- repo: https://github.com/astral-sh/ruff-pre-commit - # Ruff version. - rev: v0.0.291 - hooks: - - id: ruff-format # Run the Ruff linter. - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. rev: v0.0.291 hooks: - id: ruff +# Run the Ruff formatter. +- repo: https://github.com/astral-sh/ruff-pre-commit + # Ruff version. + rev: v0.0.291 + hooks: + - id: ruff-format ``` To enable fixes, add the `--fix` argument to the linter: @@ -47,7 +47,7 @@ To run the hooks over Jupyter Notebooks too, add `jupyter` to the list of allowe rev: v0.0.291 hooks: - id: ruff - types_or: [python, pyi, jupyter] + types_or: [ python, pyi, jupyter ] ``` Ruff's lint hook should be placed after other formatting tools, such as Ruff's format hook, Black, diff --git a/docs/tutorial.md b/docs/tutorial.md index d986e5b737..60f7bca033 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -284,13 +284,13 @@ This tutorial has focused on Ruff's command-line interface, but Ruff can also be # Run the Ruff linter. - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.1.3 + rev: v0.1.4 hooks: - id: ruff # Run the Ruff formatter. - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.1.3 + rev: v0.1.4 hooks: - id: ruff-format ``` diff --git a/pyproject.toml b/pyproject.toml index e1a9069c3d..7fb6358ce8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "ruff" -version = "0.1.3" +version = "0.1.4" description = "An extremely fast Python linter and code formatter, written in Rust." authors = [{ name = "Astral Software Inc.", email = "hey@astral.sh" }] readme = "README.md" diff --git a/scripts/benchmarks/pyproject.toml b/scripts/benchmarks/pyproject.toml index 744a1f4b3a..1d35664448 100644 --- a/scripts/benchmarks/pyproject.toml +++ b/scripts/benchmarks/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "scripts" -version = "0.1.3" +version = "0.1.4" description = "" authors = ["Charles Marsh "]