build: update pylint config
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user