From ad92f424eaf82fde1d016bd4b07229abfc4c0c93 Mon Sep 17 00:00:00 2001 From: Fabian Arndt Date: Fri, 10 Jan 2025 01:11:13 +0100 Subject: [PATCH] CI: Handle imports strictly as errors --- protonfixes_test.py | 2 -- pyproject.toml | 8 ++++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/protonfixes_test.py b/protonfixes_test.py index 83ce91b9..7a102352 100644 --- a/protonfixes_test.py +++ b/protonfixes_test.py @@ -3,8 +3,6 @@ import tempfile from pathlib import Path from unittest.mock import patch, mock_open -import io -import urllib.request import fix diff --git a/pyproject.toml b/pyproject.toml index b119be8f..41902dc3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,4 +19,12 @@ exclude = [ ] pythonVersion = "3.9" pythonPlatform = "Linux" + typeCheckingMode = "off" +reportMissingImports = "error" +reportMissingModuleSource = "error" +reportUnusedImport = "error" +reportDuplicateImport = "error" +reportWildcardImportFromLibrary = "error" +reportPrivateImportUsage = "error" +reportShadowedImports = "error"