From 11968341d425bb1d9c92d0133ee561c90f74856d Mon Sep 17 00:00:00 2001 From: Sergey Motornyuk Date: Wed, 24 Aug 2022 01:55:13 +0300 Subject: [PATCH] update pyproject.toml --- pyproject.toml | 61 +------------------------------------------------- 1 file changed, 1 insertion(+), 60 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 212bf87..4d3f11c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,63 +1,4 @@ [tool.black] line-length = 79 +preview = true -[tool.towncrier] -issue_format = "" -directory = "changes" -package = "ckanext.googleanalytics" -package_dir = "ckanext" -filename = "CHANGELOG.rst" -name = "ckanext-googleanalytics" - -[tool.pyright] -pythonVersion = "3.8" -include = ["ckanext/googleanalytics"] -exclude = [ - "**/test*", - "**/migration", -] -ignore = [ - "ckan" -] -strict = [] - -strictParameterNoneValue = true # type must be Optional if default value is None - -reportFunctionMemberAccess = true # non-standard member accesses for functions -reportMissingImports = true -reportMissingModuleSource = true -reportMissingTypeStubs = false -reportImportCycles = false -reportUnusedImport = false -reportUnusedClass = true -reportUnusedFunction = true -reportUnusedVariable = false -reportDuplicateImport = true -reportOptionalSubscript = true -reportOptionalMemberAccess = true -reportOptionalCall = true -reportOptionalIterable = true -reportOptionalContextManager = true -reportOptionalOperand = true -reportTypedDictNotRequiredAccess = false # We are using Context in a way that conflicts with this check -reportConstantRedefinition = false -reportIncompatibleMethodOverride = false -reportIncompatibleVariableOverride = true -reportOverlappingOverload = true -reportUntypedFunctionDecorator = false -reportUnknownParameterType = false # it creates a lot of noise -reportUnknownArgumentType = false -reportUnknownLambdaType = false -reportMissingTypeArgument = true -reportInvalidTypeVarUse = true -reportCallInDefaultInitializer = true -reportUnknownVariableType = false -reportUntypedBaseClass = false # ignore it because we are relying on untyped CKAN -reportUnnecessaryIsInstance = true -reportUnnecessaryCast = true -reportUnnecessaryComparison = true -reportAssertAlwaysTrue = true -reportSelfClsParameterName = true -reportUnusedCallResult = false # allow function calls for side-effect only (like logic.check_acces) - -useLibraryCodeForTypes = true