From 24696867ae4458336c1c7ec3eb5437b0329344e5 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Sat, 20 Jul 2024 14:52:58 -0400 Subject: [PATCH] Update bundled Ruff version to v0.5.4 (#1251) --- rye/src/bootstrap.rs | 4 ++-- rye/tests/test_ruff.rs | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/rye/src/bootstrap.rs b/rye/src/bootstrap.rs index fe107cc136..da001ea343 100644 --- a/rye/src/bootstrap.rs +++ b/rye/src/bootstrap.rs @@ -33,7 +33,7 @@ pub const SELF_PYTHON_TARGET_VERSION: PythonVersionRequest = PythonVersionReques suffix: None, }; -const SELF_VERSION: u64 = 20; +const SELF_VERSION: u64 = 21; pub const SELF_REQUIREMENTS: &str = r#" build==1.2.1 @@ -52,7 +52,7 @@ twine==5.1.1 unearth==0.14.0 urllib3==2.0.7 virtualenv==20.25.0 -ruff==0.4.4 +ruff==0.5.4 "#; static FORCED_TO_UPDATE: AtomicBool = AtomicBool::new(false); diff --git a/rye/tests/test_ruff.rs b/rye/tests/test_ruff.rs index aa2d700c64..08b19f3404 100644 --- a/rye/tests/test_ruff.rs +++ b/rye/tests/test_ruff.rs @@ -28,7 +28,21 @@ def hello(): exit_code: 1 ----- stdout ----- src/my_project/test.py:1:8: F401 [*] `os` imported but unused + | + 1 | import os + | ^^ F401 + 2 | + 3 | def hello(): + | + = help: Remove unused import: `os` + src/my_project/test.py:6:25: E703 [*] Statement ends with an unnecessary semicolon + | + 6 | return "Hello World"; + | ^ E703 + | + = help: Remove unnecessary semicolon + Found 2 errors. [*] 2 fixable with the `--fix` option.