From e1a8d332467ed3109117a19db74c2385b59f116a Mon Sep 17 00:00:00 2001 From: Michael Carlstrom Date: Thu, 7 Dec 2023 12:11:27 -0500 Subject: [PATCH] fix submodule --- test/test_mypy.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_mypy.py b/test/test_mypy.py index 79fc51a..606c575 100644 --- a/test/test_mypy.py +++ b/test/test_mypy.py @@ -11,5 +11,7 @@ def test_mypy() -> None: """Tests mypy on this module.""" file_path = __file__.replace(f'{__name__}.py', '') config_file = os.path.join(file_path, '..', '..', '..', '..', 'mypy.ini') + if not os.path.exists(config_file): + config_file = os.path.join(file_path, '..', 'mypy.ini') error_code = main(argv=['--config', config_file]) assert error_code == 0, 'Found code style errors / warnings'