mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-06-28 11:16:14 +02:00
Improved mypy checks
This commit is contained in:
parent
c0abda31bc
commit
a61a7916a3
2 changed files with 15 additions and 11 deletions
|
@ -1,18 +1,21 @@
|
|||
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",
|
||||
"--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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue