Skip to content

Commit

Permalink
[ci] Ignore untyped tests using regex instead
Browse files Browse the repository at this point in the history
  • Loading branch information
tysmith committed May 29, 2024
1 parent 3cb51ed commit 86cc372
Show file tree
Hide file tree
Showing 13 changed files with 2 additions and 12 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ repos:
entry: tox -e mypy --
language: system
require_serial: true
exclude: /test_.*\.py$
types: [python]
- id: pylint
name: pylint
Expand Down
1 change: 0 additions & 1 deletion src/ffpuppet/test_bootstrapper.py
Original file line number Diff line number Diff line change
@@ -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/.
Expand Down
1 change: 0 additions & 1 deletion src/ffpuppet/test_checks.py
Original file line number Diff line number Diff line change
@@ -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/.
Expand Down
1 change: 0 additions & 1 deletion src/ffpuppet/test_ffpuppet.py
Original file line number Diff line number Diff line change
@@ -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/.
Expand Down
1 change: 0 additions & 1 deletion src/ffpuppet/test_helpers.py
Original file line number Diff line number Diff line change
@@ -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/.
Expand Down
1 change: 0 additions & 1 deletion src/ffpuppet/test_job_object.py
Original file line number Diff line number Diff line change
@@ -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/.
Expand Down
1 change: 0 additions & 1 deletion src/ffpuppet/test_main.py
Original file line number Diff line number Diff line change
@@ -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/.
Expand Down
1 change: 0 additions & 1 deletion src/ffpuppet/test_minidump_parser.py
Original file line number Diff line number Diff line change
@@ -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/.
Expand Down
1 change: 0 additions & 1 deletion src/ffpuppet/test_process_tree.py
Original file line number Diff line number Diff line change
@@ -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/.
Expand Down
1 change: 0 additions & 1 deletion src/ffpuppet/test_profile.py
Original file line number Diff line number Diff line change
@@ -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/.
Expand Down
1 change: 0 additions & 1 deletion src/ffpuppet/test_puppet_logger.py
Original file line number Diff line number Diff line change
@@ -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/.
Expand Down
1 change: 0 additions & 1 deletion src/ffpuppet/test_sanitizer_util.py
Original file line number Diff line number Diff line change
@@ -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/.
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ skip_install = true

[testenv:mypy]
commands =
mypy --install-types --non-interactive {posargs}
mypy --install-types --non-interactive --strict {posargs}
deps =
mypy==v1.7.1
usedevelop = true
Expand Down

0 comments on commit 86cc372

Please sign in to comment.