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] [MESSAGES CONTROL]
disable= disable=
missing-docstring, 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, fixme,
invalid-name,
duplicate-code, duplicate-code,
too-few-public-methods,
extension-pkg-allow-list= too-many-locals,
lxml, no-else-return
GeoIP,
pydantic
[MISCELLANEOUS] [MISCELLANEOUS]
notes=FIXME,TODO notes=FIXME,TODO
@@ -1,3 +1,4 @@
# pylint: skip-file
from pathlib import Path from pathlib import Path
from lxml import etree from lxml import etree
@@ -17,8 +18,8 @@ def icon_optimizator(file: Path):
for node in tree.findall(".//{*}path"): for node in tree.findall(".//{*}path"):
d = node.attrib["d"] d = node.attrib["d"]
node.attrib["d"] = " ".join(map(normalize_value, d.split(" "))) node.attrib["d"] = " ".join(map(normalize_value, d.split(" ")))
#file = file.parent.parent / "icons.tmp" / file.name # file = file.parent.parent / "icons.tmp" / file.name
#file.parent.mkdir(parents=True, exist_ok=True) # file.parent.mkdir(parents=True, exist_ok=True)
tree.write(file) tree.write(file)
target_size = file.stat().st_size target_size = file.stat().st_size
print(file.name, source_size, target_size) print(file.name, source_size, target_size)