Skip to content

Commit

Permalink
Update bundled Ruff version to v0.5.4 (#1251)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh authored Jul 20, 2024
1 parent 2c6247b commit 2469686
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rye/src/bootstrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
Expand Down
14 changes: 14 additions & 0 deletions rye/tests/test_ruff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2469686

Please sign in to comment.