ruff: 0.12.4 -> 0.12.5 (#428276)

This commit is contained in:
Philip Taron
2025-08-06 10:52:53 -07:00
committed by GitHub
+25 -3
View File
@@ -16,18 +16,39 @@
rustPlatform.buildRustPackage (finalAttrs: {
pname = "ruff";
version = "0.12.4";
version = "0.12.5";
src = fetchFromGitHub {
owner = "astral-sh";
repo = "ruff";
tag = finalAttrs.version;
hash = "sha256-XuHVKxzXYlm3iEhdAVCyd62uNyb3jeJRl3B0hnvUzX0=";
hash = "sha256-A+ivcL8c1K+IXbtrL1v4i0iRU6urBMvPbs01ZJNRLpM=";
};
# Patch out test that fails due to ANSI escape codes being written as-is,
# causing a snapshot test to fail. The output itself is correct.
#
# This is the relevant test's output as of 0.12.5
# > 0 │-/home/ferris/project/code.py:1:1: E902 Permission denied (os error 13)
# > 1 │-/home/ferris/project/notebook.ipynb:1:1: E902 Permission denied (os error 13)
# > 2 │-/home/ferris/project/pyproject.toml:1:1: E902 Permission denied (os error 13)
# > 0 │+␛[1m/home/ferris/project/code.py␛[0m␛[36m:␛[0m1␛[36m:␛[0m1␛[36m:␛[0m ␛[1m␛[31mE902␛[0m Permission denied (os error 13)
# > 1 │+␛[1m/home/ferris/project/notebook.ipynb␛[0m␛[36m:␛[0m1␛[36m:␛[0m1␛[36m:␛[0m ␛[1m␛[31mE902␛[0m Permission denied (os error 13)
# > 2 │+␛[1m/home/ferris/project/pyproject.toml␛[0m␛[36m:␛[0m1␛[36m:␛[0m1␛[36m:␛[0m ␛[1m␛[31mE902␛[0m Permission denied (os error 13)
# > ────────────┴───────────────────────────────────────────────────────────────────
postPatch = ''
substituteInPlace crates/ruff/src/commands/check.rs --replace-fail '
#[test]
fn unreadable_files() -> Result<()> {' \
'
#[test]
#[ignore = "ANSI Escape Codes trigger snapshot diff"]
fn unreadable_files() -> Result<()> {'
'';
cargoBuildFlags = [ "--package=ruff" ];
cargoHash = "sha256-cyjaGI7JoreAmHtUrRKNyiCaE8zveP/dFJROC2iIXr4=";
cargoHash = "sha256-pnYXqJ2Za8Y5RqSB4UL/VITCmY4EGQDTTLklyqJdB5w=";
nativeBuildInputs = [ installShellFiles ];
@@ -66,6 +87,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
"--exclude=ty_project"
"--exclude=ty_python_semantic"
"--exclude=ty_server"
"--exclude=ty_static"
"--exclude=ty_test"
"--exclude=ty_vendored"
"--exclude=ty_wasm"