prettier and eslint ignore valid syntax for qml specific syntax. Clippy lint resolved in .rs. unused py files commented to be ignored by ruff

This commit is contained in:
2026-05-19 23:53:09 +02:00
parent ceca949535
commit dd49198cf7
10 changed files with 240 additions and 224 deletions
+2
View File
@@ -0,0 +1,2 @@
scripts/fzf.js
scripts/fuzzysort.js
+12 -10
View File
@@ -1,11 +1,13 @@
import json # import json
import typer # import typer
from zshell.assets.schemes.catppuccin import catppuccin # from zshell.assets.schemes.catppuccin import catppuccin
#
# app = typer.Typer()
#
# SCHEMES = catppuccin.variants.flavors
#
#
# @app.command()
# def set():
app = typer.Typer() # TODO: Currently unsused
SCHEMES = catppuccin.variants.flavors
@app.command()
def set():
+15 -13
View File
@@ -1,14 +1,16 @@
import typer # import typer
import subprocess # import subprocess
#
# from typing import Optional
#
# app = typer.Typer()
#
# RECORDER = "gpu-screen-recorder"
# HOME = str(os.getenv("HOME"))
# CONFIG = Path(HOME + "/.config/zshell/config.json")
#
#
# @app.command()
# def start():
from typing import Optional # TODO: Currently unused
app = typer.Typer()
RECORDER = "gpu-screen-recorder"
HOME = str(os.getenv("HOME"))
CONFIG = Path(HOME + "/.config/zshell/config.json")
@app.command()
def start():
+7 -5
View File
@@ -1,14 +1,16 @@
export default [ export default [
{
ignores: ["scripts/fzf.js", "scripts/fuzzysort.js"],
},
{ {
files: ["**/*.{js,jsx,ts,tsx,mjs,cjs}"], files: ["**/*.{js,jsx,ts,tsx,mjs,cjs}"],
languageOptions: { languageOptions: {
ecmaVersion: 2021, ecmaVersion: 2021,
sourceType: "module" sourceType: "module",
}, },
linterOptions: { linterOptions: {
reportUnusedDisableDirectives: true reportUnusedDisableDirectives: true,
},
rules: {},
}, },
rules: {
}
}
]; ];
+16 -8
View File
@@ -39,8 +39,10 @@ pub fn apply_rounded_corners(img: RgbaImage, radius: f32) -> RgbaImage {
); );
let mut pixmap = rgba_image_to_pixmap(&img); let mut pixmap = rgba_image_to_pixmap(&img);
let mut dst_paint = PixmapPaint::default(); let dst_paint = PixmapPaint {
dst_paint.blend_mode = BlendMode::DestinationIn; blend_mode: BlendMode::DestinationIn,
..Default::default()
};
pixmap.draw_pixmap(0, 0, mask.as_ref(), &dst_paint, Transform::identity(), None); pixmap.draw_pixmap(0, 0, mask.as_ref(), &dst_paint, Transform::identity(), None);
pixmap_to_rgba_image(pixmap) pixmap_to_rgba_image(pixmap)
} }
@@ -69,8 +71,10 @@ pub fn apply_drop_shadow(
let shadow_x = (extra_left as f32 + offset_x) as i32; let shadow_x = (extra_left as f32 + offset_x) as i32;
let shadow_y = (extra_top as f32 + offset_y) as i32; let shadow_y = (extra_top as f32 + offset_y) as i32;
let mut sp = PixmapPaint::default(); let sp = PixmapPaint {
sp.blend_mode = BlendMode::Source; blend_mode: BlendMode::Source,
..Default::default()
};
shadow_pixmap.draw_pixmap( shadow_pixmap.draw_pixmap(
shadow_x, shadow_x,
shadow_y, shadow_y,
@@ -87,8 +91,10 @@ pub fn apply_drop_shadow(
let blurred_pixmap = rgba_image_to_pixmap(&blurred); let blurred_pixmap = rgba_image_to_pixmap(&blurred);
let mut canvas = Pixmap::new(canvas_w, canvas_h).expect("canvas pixmap"); let mut canvas = Pixmap::new(canvas_w, canvas_h).expect("canvas pixmap");
let mut p = PixmapPaint::default(); let p = PixmapPaint {
p.blend_mode = BlendMode::Source; blend_mode: BlendMode::Source,
..Default::default()
};
canvas.draw_pixmap( canvas.draw_pixmap(
0, 0,
0, 0,
@@ -98,8 +104,10 @@ pub fn apply_drop_shadow(
None, None,
); );
let mut p2 = PixmapPaint::default(); let p2 = PixmapPaint {
p2.blend_mode = BlendMode::SourceOver; blend_mode: BlendMode::SourceOver,
..Default::default()
};
canvas.draw_pixmap( canvas.draw_pixmap(
extra_left as i32, extra_left as i32,
extra_top as i32, extra_top as i32,