pylint: reduces max-line-length to something more reasonable

This commit is contained in:
Christian Parpart 2020-02-03 11:44:28 +01:00 committed by chriseth
parent a3421709fe
commit 4b38f499ae
3 changed files with 6 additions and 3 deletions

View File

@ -33,7 +33,8 @@ for optimize in [False, True]:
for contractName in sorted(result['contracts'][filename].keys()):
contractData = result['contracts'][filename][contractName]
if 'evm' in contractData and 'bytecode' in contractData['evm']:
REPORT_FILE.write(filename + ':' + contractName + ' ' + contractData['evm']['bytecode']['object'] + '\n')
REPORT_FILE.write(filename + ':' + contractName + ' ' +
contractData['evm']['bytecode']['object'] + '\n')
else:
REPORT_FILE.write(filename + ':' + contractName + ' NO BYTECODE\n')
REPORT_FILE.write(filename + ':' + contractName + ' ' + contractData['metadata'] + '\n')

View File

@ -49,7 +49,9 @@ def readDependencies(fname):
for line in o.stdout:
if line[0] == '\t':
library = line.split(' ', 1)[0][1:]
if library.startswith("/usr/local/lib") or library.startswith("/usr/local/opt") or library.startswith("/Users/"):
if (library.startswith("/usr/local/lib") or
library.startswith("/usr/local/opt") or
library.startswith("/Users/")):
if (os.path.basename(library) != os.path.basename(fname)):
command = "install_name_tool -change " + \
library + " @executable_path/./" + \

View File

@ -71,4 +71,4 @@ good-names=
expected-line-ending-format=LF
# Maximum number of characters on a single line.
max-line-length=130
max-line-length=110