pylint: Disable the opinionated too-many-xyz warnings

This commit is contained in:
Kamil Śliwak 2021-12-21 15:19:32 +01:00
parent 0769e4df5d
commit de364c566c
4 changed files with 10 additions and 8 deletions

View File

@ -187,7 +187,7 @@ def parse_cli_output(source_file_name: Path, cli_output: str) -> FileReport:
return file_report
def prepare_compiler_input( # pylint: disable=too-many-arguments
def prepare_compiler_input(
compiler_path: Path,
source_file_name: Path,
optimize: bool,
@ -256,7 +256,7 @@ def detect_metadata_cli_option_support(compiler_path: Path):
return process.returncode == 0
def run_compiler( # pylint: disable=too-many-arguments
def run_compiler(
compiler_path: Path,
source_file_name: Path,
optimize: bool,
@ -320,7 +320,7 @@ def run_compiler( # pylint: disable=too-many-arguments
return parse_cli_output(Path(source_file_name), process.stdout)
def generate_report( # pylint: disable=too-many-arguments,too-many-locals
def generate_report(
source_file_names: List[str],
compiler_path: Path,
interface: CompilerInterface,

View File

@ -9,8 +9,6 @@
#
# verify-testcases.py will compare both traces. If these traces are identical, the extracted tests were
# identical with the tests specified in SolidityEndToEndTest.cpp.
#
# pylint: disable=too-many-instance-attributes
import re
import os

View File

@ -254,8 +254,6 @@ def examine_id_coverage(top_dir, source_id_to_file_names, new_ids_only=False):
def main(argv):
# pylint: disable=too-many-branches, too-many-locals, too-many-statements
check = False
fix = False
no_confirm = False

View File

@ -25,7 +25,13 @@ disable=
pointless-string-statement,
redefined-outer-name,
too-few-public-methods,
too-many-public-methods
too-many-arguments,
too-many-branches,
too-many-instance-attributes,
too-many-locals,
too-many-public-methods,
too-many-statements,
ungrouped-imports
[BASIC]