From fdaa60f5046457a1dab671938177794b53f226f3 Mon Sep 17 00:00:00 2001 From: Trysdyn Black Date: Fri, 25 Apr 2025 10:02:54 -0700 Subject: [PATCH 1/2] Update ruff defaults - Minimum version py310, to prevent "Py 3.9 does not have foo" errors - Drop ANN101 because it's deprecated anyway --- .config/ruff/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/ruff/pyproject.toml b/.config/ruff/pyproject.toml index 297c888..cad2a24 100644 --- a/.config/ruff/pyproject.toml +++ b/.config/ruff/pyproject.toml @@ -1,4 +1,5 @@ [tool.ruff] +target-version = "py310" line-length = 120 indent-width = 4 @@ -41,7 +42,6 @@ lint.select = [ ] lint.ignore = [ - "ANN101", # No type hint for "self" - not necessary and makes noisy code "D203", # Blank line required before class docstring - conflicts with ruff's own formatter "D211", # No line before class, incompatible with D203 - one line before class "D212", # Summary on first line; incompatible with D213 - summary on second line From 5eba7b207f293ece20b731b79ae1f6a942761528 Mon Sep 17 00:00:00 2001 From: Trysdyn Black Date: Fri, 25 Apr 2025 10:03:56 -0700 Subject: [PATCH 2/2] Waybar custom module tweaks --- .config/waybar/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/waybar/config b/.config/waybar/config index 52e949d..3b1d70b 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -72,7 +72,7 @@ }, "custom/oven": { "exec": "$HOME/workspace/foxstatus/modules/oven.py", - "max-length": 6, + "max-length": 8, "interval": 300 } }