From 507b8480741ca86a72f91194ff2a2d6ee260904f Mon Sep 17 00:00:00 2001 From: FasterSpeeding Date: Sun, 7 Apr 2024 16:56:41 +0100 Subject: [PATCH] Add linting --- pyproject.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..1f9a94f --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,14 @@ +[tool.pyright] +include = ["noxfile.py", "runner.py"] + +pythonVersion = "3.11" +typeCheckingMode = "strict" +reportMissingModuleSource = "error" # Is only "warning" on strict mode. + +# Error code which are disabled even when general strict. +reportShadowedImports = "error" +reportCallInDefaultInitializer = "none" # Ended up just complaining about cases where this was fine (e.g. timedeltas). +reportImplicitStringConcatenation = "none" # Conflicts with flake8 config. +reportPropertyTypeMismatch = "error" +reportUninitializedInstanceVariable = "error" +reportUnnecessaryTypeIgnoreComment = "error"