added custom pylinting

This commit is contained in:
nvaldez
2026-09-27 20:08:55 +02:00
parent 3b6342f37a
commit 8cd96b7210
16 changed files with 4234 additions and 715 deletions
+33
View File
@@ -0,0 +1,33 @@
"""Python Custom Linter - Backward compatibility module.
This module provides backward compatibility by re-exporting from the new
customlinter package.
"""
import os
import sys
from customlinter.base import CustomLintError
from customlinter.pycustomlint import (
READONLY_ZONES,
VIOLATION_CODES,
InlineImportVisitor,
LintViolation,
PythonCustomLinter,
main,
)
# Fix imports for when this module is used directly
src_path = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
if src_path not in sys.path:
sys.path.insert(0, src_path)
__all__ = [
"READONLY_ZONES",
"VIOLATION_CODES",
"CustomLintError",
"InlineImportVisitor",
"LintViolation",
"PythonCustomLinter",
"main",
]