From a92b63b855ae2519d7f76a1ae14e081ae2c8b25a Mon Sep 17 00:00:00 2001 From: shmyga Date: Fri, 21 Aug 2026 20:10:58 +0300 Subject: [PATCH] build: update pylint config --- .pylintrc | 19 ++++--------------- .../lib/weather-icons/icons_optimizator.py | 5 +++-- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/.pylintrc b/.pylintrc index 31861c2..95a4507 100644 --- a/.pylintrc +++ b/.pylintrc @@ -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 diff --git a/static/src/lib/weather-icons/icons_optimizator.py b/static/src/lib/weather-icons/icons_optimizator.py index ba1bddb..28ed0f1 100644 --- a/static/src/lib/weather-icons/icons_optimizator.py +++ b/static/src/lib/weather-icons/icons_optimizator.py @@ -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)