Skip to content

Commit 9589549

Browse files
hauntsaninjaeli-schwartz
authored andcommitted
Make run_mypy.py work in mypy_primer
See also hauntsaninja/mypy_primer#77
1 parent b9db06b commit 9589549

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

run_mypy.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ def check_mypy() -> None:
111111
sys.exit(1)
112112

113113
def main() -> int:
114-
check_mypy()
115-
116114
root = Path(__file__).absolute().parent
117115

118116
parser = argparse.ArgumentParser(description='Process some integers.')
@@ -124,6 +122,9 @@ def main() -> int:
124122
parser.add_argument('--allver', action='store_true', help='Check all supported versions of python')
125123

126124
opts, args = parser.parse_known_args()
125+
if not opts.mypy:
126+
check_mypy()
127+
127128
if opts.pretty:
128129
args.append('--pretty')
129130

0 commit comments

Comments
 (0)