added custom pylinting
This commit is contained in:
@@ -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",
|
||||
]
|
||||
Reference in New Issue
Block a user