build: update pylint config

This commit is contained in:
2026-08-21 20:10:58 +03:00
parent 712c7615a6
commit a92b63b855
2 changed files with 7 additions and 17 deletions
@@ -1,3 +1,4 @@
# pylint: skip-file
from pathlib import Path
from lxml import etree
@@ -17,8 +18,8 @@ def icon_optimizator(file: Path):
for node in tree.findall(".//{*}path"):
d = node.attrib["d"]
node.attrib["d"] = " ".join(map(normalize_value, d.split(" ")))
#file = file.parent.parent / "icons.tmp" / file.name
#file.parent.mkdir(parents=True, exist_ok=True)
# file = file.parent.parent / "icons.tmp" / file.name
# file.parent.mkdir(parents=True, exist_ok=True)
tree.write(file)
target_size = file.stat().st_size
print(file.name, source_size, target_size)