Improved code style.

This commit is contained in:
Cédric Bonhomme 2019-12-17 09:18:37 +01:00
parent 9b216d9d59
commit 71f6c08c28
No known key found for this signature in database
GPG key ID: A1CB94DE57B7A70D
19 changed files with 335 additions and 253 deletions

View file

@ -1,21 +1,29 @@
import subprocess
import sys
modules = ['stegano/tools.py',
'stegano/lsb/lsb.py',
'stegano/lsbset/lsbset.py',
'stegano/lsbset/generators.py',
'stegano/red/red.py',
'stegano/exifHeader/exifHeader.py',
'stegano/steganalysis/parity.py',
'stegano/steganalysis/statistics.py']
modules = [
"stegano/tools.py",
"stegano/lsb/lsb.py",
"stegano/lsbset/lsbset.py",
"stegano/lsbset/generators.py",
"stegano/red/red.py",
"stegano/exifHeader/exifHeader.py",
"stegano/steganalysis/parity.py",
"stegano/steganalysis/statistics.py",
]
exit_codes = []
for module in modules:
rc = subprocess.call(['mypy', '--ignore-missing-imports',
'--check-untyped-defs',
'--follow-imports', 'skip', module],
)
rc = subprocess.call(
[
"mypy",
"--ignore-missing-imports",
"--check-untyped-defs",
"--follow-imports",
"skip",
module,
],
)
exit_codes.append(rc)
sys.exit(max(exit_codes))