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
+4 -15
View File
@@ -4,23 +4,12 @@ ignore=.venv
[MESSAGES CONTROL]
disable=
missing-docstring,
too-few-public-methods,
too-many-instance-attributes,
too-many-arguments,
too-many-locals,
too-many-boolean-expressions,
too-many-public-methods,
no-else-return,
singleton-comparison,
unused-argument,
unspecified-encoding,
fixme,
invalid-name,
duplicate-code,
extension-pkg-allow-list=
lxml,
GeoIP,
pydantic
too-few-public-methods,
too-many-locals,
no-else-return
[MISCELLANEOUS]
notes=FIXME,TODO
@@ -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)