From a48deaf9df49c999eeeb0820021acde942176860 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 30 Sep 2025 11:26:24 -0700 Subject: utils: merge per-platform utils into `platform.py` This allows us to simplify running mypy, as we can just mypy the entire utils module regardless of the platform we're using. As an added bonus, this means we open one less module. --- run_mypy.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'run_mypy.py') diff --git a/run_mypy.py b/run_mypy.py index 5f3ef5eb4..08d579113 100755 --- a/run_mypy.py +++ b/run_mypy.py @@ -23,6 +23,7 @@ modules = [ 'mesonbuild/linkers/', 'mesonbuild/scripts/', 'mesonbuild/templates/', + 'mesonbuild/utils/', 'mesonbuild/wrap/', # specific files @@ -40,10 +41,6 @@ modules = [ 'mesonbuild/machinefile.py', 'mesonbuild/mcompile.py', 'mesonbuild/mdevenv.py', - 'mesonbuild/utils/core.py', - 'mesonbuild/utils/platform.py', - 'mesonbuild/utils/universal.py', - 'mesonbuild/utils/vsenv.py', 'mesonbuild/mconf.py', 'mesonbuild/mdist.py', 'mesonbuild/mformat.py', @@ -92,11 +89,6 @@ additional = [ 'unittests/helpers.py', ] -if os.name == 'posix': - modules.append('mesonbuild/utils/posix.py') -elif os.name == 'nt': - modules.append('mesonbuild/utils/win32.py') - def check_mypy() -> None: try: import mypy -- cgit v1.3