|
41 | 41 | logging.basicConfig() |
42 | 42 |
|
43 | 43 |
|
44 | | -# pylint: disable=too-many-lines |
45 | | - |
46 | | - |
47 | 44 | def get_platforms() -> list[type[AbstractPlatform]]: |
48 | 45 | """Return the available platforms classes in order of preference |
49 | 46 |
|
@@ -111,13 +108,11 @@ def _configure_solc(solc_requested: str, offline: bool) -> str: |
111 | 108 | return solc_path.absolute().as_posix() |
112 | 109 |
|
113 | 110 |
|
114 | | -# pylint: disable=too-many-instance-attributes |
115 | 111 | class CryticCompile: |
116 | 112 | """ |
117 | 113 | Main class. |
118 | 114 | """ |
119 | 115 |
|
120 | | - # pylint: disable=too-many-branches |
121 | 116 | def __init__(self, target: str | AbstractPlatform, **kwargs: str) -> None: |
122 | 117 | """See https://github.com/crytic/crytic-compile/wiki/Configuration |
123 | 118 | Target is usually a file or a project directory. It can be an AbstractPlatform |
@@ -152,7 +147,6 @@ def __init__(self, target: str | AbstractPlatform, **kwargs: str) -> None: |
152 | 147 | else: |
153 | 148 | self._working_dir = Path.cwd() |
154 | 149 |
|
155 | | - # pylint: disable=too-many-nested-blocks |
156 | 150 | if isinstance(target, str): |
157 | 151 | platform = self._init_platform(target, **kwargs) |
158 | 152 | # If the platform is Solc it means we are trying to compile a single |
@@ -588,7 +582,6 @@ def export(self, **kwargs: str) -> list[str]: |
588 | 582 | ################################################################################### |
589 | 583 | ################################################################################### |
590 | 584 |
|
591 | | - # pylint: disable=no-self-use |
592 | 585 | def _init_platform(self, target: str, **kwargs: str) -> AbstractPlatform: |
593 | 586 | """Init the platform |
594 | 587 |
|
|
0 commit comments