Skip to content

Commit

Permalink
call extension before mypy config write (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurnikov committed Jul 24, 2019
1 parent 98ac04c commit cef0be8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pytest_mypy/item.py
Expand Up @@ -202,16 +202,16 @@ def runtest(self):
assert execution_path.exists()

with utils.cd(execution_path):
# start from main.py
main_file = str(execution_path / 'main.py')
mypy_cmd_options = self.prepare_mypy_cmd_options(execution_path)
mypy_cmd_options.append(main_file)

# extension point for derived packages
if (hasattr(self.config.option, 'mypy_extension_hook')
and self.config.option.mypy_extension_hook is not None):
self.execute_extension_hook()

# start from main.py
main_file = str(execution_path / 'main.py')
mypy_cmd_options = self.prepare_mypy_cmd_options(execution_path)
mypy_cmd_options.append(main_file)

# make files
self.make_test_files_in_current_directory()

Expand Down

0 comments on commit cef0be8

Please sign in to comment.