From 698499911d76ea88d70839f50f8d2b97eaf07711 Mon Sep 17 00:00:00 2001 From: Tyson Smith Date: Tue, 28 May 2024 17:15:21 -0700 Subject: [PATCH] [ci] Ignore untyped tests using regex instead --- .pre-commit-config.yaml | 1 + src/ffpuppet/test_bootstrapper.py | 1 - src/ffpuppet/test_checks.py | 1 - src/ffpuppet/test_ffpuppet.py | 1 - src/ffpuppet/test_helpers.py | 1 - src/ffpuppet/test_job_object.py | 1 - src/ffpuppet/test_main.py | 1 - src/ffpuppet/test_minidump_parser.py | 1 - src/ffpuppet/test_process_tree.py | 1 - src/ffpuppet/test_profile.py | 1 - src/ffpuppet/test_puppet_logger.py | 1 - src/ffpuppet/test_sanitizer_util.py | 1 - 12 files changed, 1 insertion(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4d42936..f348d5d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -63,6 +63,7 @@ repos: entry: tox -e mypy -- language: system require_serial: true + exclude: /test_.*\.py$ types: [python] - id: pylint name: pylint diff --git a/src/ffpuppet/test_bootstrapper.py b/src/ffpuppet/test_bootstrapper.py index 33e8431..951aac8 100644 --- a/src/ffpuppet/test_bootstrapper.py +++ b/src/ffpuppet/test_bootstrapper.py @@ -1,4 +1,3 @@ -# type: ignore # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/src/ffpuppet/test_checks.py b/src/ffpuppet/test_checks.py index 9f68fe9..36e8ad1 100644 --- a/src/ffpuppet/test_checks.py +++ b/src/ffpuppet/test_checks.py @@ -1,4 +1,3 @@ -# type: ignore # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/src/ffpuppet/test_ffpuppet.py b/src/ffpuppet/test_ffpuppet.py index 73b32ad..44ff3b7 100644 --- a/src/ffpuppet/test_ffpuppet.py +++ b/src/ffpuppet/test_ffpuppet.py @@ -1,4 +1,3 @@ -# type: ignore # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/src/ffpuppet/test_helpers.py b/src/ffpuppet/test_helpers.py index b15f7be..d305a53 100644 --- a/src/ffpuppet/test_helpers.py +++ b/src/ffpuppet/test_helpers.py @@ -1,4 +1,3 @@ -# type: ignore # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/src/ffpuppet/test_job_object.py b/src/ffpuppet/test_job_object.py index 15f3990..9383440 100644 --- a/src/ffpuppet/test_job_object.py +++ b/src/ffpuppet/test_job_object.py @@ -1,4 +1,3 @@ -# type: ignore # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/src/ffpuppet/test_main.py b/src/ffpuppet/test_main.py index d55dc09..50db908 100644 --- a/src/ffpuppet/test_main.py +++ b/src/ffpuppet/test_main.py @@ -1,4 +1,3 @@ -# type: ignore # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/src/ffpuppet/test_minidump_parser.py b/src/ffpuppet/test_minidump_parser.py index 1d587c9..851bb7e 100644 --- a/src/ffpuppet/test_minidump_parser.py +++ b/src/ffpuppet/test_minidump_parser.py @@ -1,4 +1,3 @@ -# type: ignore # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/src/ffpuppet/test_process_tree.py b/src/ffpuppet/test_process_tree.py index d5b7e7f..efbe4b4 100644 --- a/src/ffpuppet/test_process_tree.py +++ b/src/ffpuppet/test_process_tree.py @@ -1,4 +1,3 @@ -# type: ignore # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/src/ffpuppet/test_profile.py b/src/ffpuppet/test_profile.py index 63a664e..8a1cc8c 100644 --- a/src/ffpuppet/test_profile.py +++ b/src/ffpuppet/test_profile.py @@ -1,4 +1,3 @@ -# type: ignore # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/src/ffpuppet/test_puppet_logger.py b/src/ffpuppet/test_puppet_logger.py index ce7ab34..5360b14 100644 --- a/src/ffpuppet/test_puppet_logger.py +++ b/src/ffpuppet/test_puppet_logger.py @@ -1,4 +1,3 @@ -# type: ignore # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/src/ffpuppet/test_sanitizer_util.py b/src/ffpuppet/test_sanitizer_util.py index 5559727..07a721c 100644 --- a/src/ffpuppet/test_sanitizer_util.py +++ b/src/ffpuppet/test_sanitizer_util.py @@ -1,4 +1,3 @@ -# type: ignore # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/.