diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-09-30 11:26:24 -0700 |
|---|---|---|
| committer | Jussi Pakkanen <jussi.pakkanen@mailbox.org> | 2025-10-04 17:18:54 +0300 |
| commit | a48deaf9df49c999eeeb0820021acde942176860 (patch) | |
| tree | 16ce4ad59f214a0beace70078a104ed5921968b2 /run_mypy.py | |
| parent | 2cea370a7bfb47343d8fd5f8c6453a21c9aac7a0 (diff) | |
| download | meson-a48deaf9df49c999eeeb0820021acde942176860.tar.gz | |
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.
Diffstat (limited to 'run_mypy.py')
| -rwxr-xr-x | run_mypy.py | 10 |
1 files changed, 1 insertions, 9 deletions
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 |
