Browse Source

Disable isort, fix pylint

Josselin 2 months ago
parent
commit
5514e16f70

+ 1 - 0
.github/workflows/linter.yml

@@ -72,6 +72,7 @@ jobs:
           VALIDATE_PYTHON: false
           VALIDATE_PYTHON_PYLINT: false
           VALIDATE_PYTHON_BLACK: false
+          VALIDATE_PYTHON_ISORT: false
           # Always false
           VALIDATE_JSON: false
           VALIDATE_JAVASCRIPT_STANDARD: false

+ 1 - 1
slither/printers/guidance/echidna.py

@@ -158,7 +158,7 @@ def json_serializable(cls):
 
 
 @json_serializable
-class ConstantValue(NamedTuple):
+class ConstantValue(NamedTuple):  # pylint: disable=inherit-non-class,too-few-public-methods
     # Here value should be  Union[str, int, bool]
     # But the json lib in Echidna does not handle large integer in json
     # So we convert everything to string

+ 1 - 1
slither/tools/properties/properties/properties.py

@@ -24,7 +24,7 @@ class PropertyCaller(Enum):
     ANY = 5  # If the caller does not matter
 
 
-class Property(NamedTuple):
+class Property(NamedTuple):  # pylint: disable=inherit-non-class,too-few-public-methods
     name: str
     content: str
     type: PropertyType