-
Notifications
You must be signed in to change notification settings - Fork 33
/
pyproject.toml
150 lines (134 loc) · 4.92 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
[build-system]
requires = [ "setuptools",]
build-backend = "setuptools.build_meta"
[project]
name = "ckanext-validation"
version = "2.1.0"
description = "Data description and validation for CKAN with Frictionless Data tools."
classifiers = [ "Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",]
keywords = [ "CKAN", "extension", "validation",]
dependencies = [ "typing_extensions",]
authors = [
{name = "Open Knowledge Foundation", email = "[email protected]"},
{name = "Adrià Mercader (amercader)", email = "[email protected]"},
{name = "Jesse Vickery (JVickery-TBS)", email = "[email protected]"},
{name = "Edgar Z. Alvarenga (aivuk)"},
{name = "ThrawnCA", email = "[email protected]"},
{name = "William Dutton (duttonw)", email = "[email protected]"},
# {name = "", email = ""},
]
maintainers = [
{name = "Open Knowledge Foundation", email = "[email protected]"},
{name = "Adrià Mercader (amercader)", email = "[email protected]"},
{name = "William Dutton (duttonw)", email = "[email protected]"},
{name = "ThrawnCA", email = "[email protected]"},
]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.license]
text = "AGPL"
[project.urls]
Homepage = "https://github.com/ckan/ckanext-validation"
[project.optional-dependencies]
test = [ "pytest-factoryboy",]
[project.entry-points."ckan.plugins"]
validation = "ckanext.validation.plugin:ValidationPlugin"
[project.entry-points."ckan.test_plugins"]
test_validation_plugin = "ckanext.validation.tests.test_interfaces:TestPlugin"
[project.entry-points."ckan.paster_command"]
validation = "ckanext.validation.commands:Validation"
[project.entry-points."babel.extractors"]
ckan = "ckan.lib.extract:extract_ckan"
[tool.setuptools.packages]
find = {}
[tool.black]
line-length = 79
preview = true
[tool.isort]
known_ckan = "ckan"
known_ckanext = "ckanext"
known_self = "ckanext.validation"
sections = "FUTURE,STDLIB,FIRSTPARTY,THIRDPARTY,CKAN,CKANEXT,SELF,LOCALFOLDER"
[tool.pytest.ini_options]
addopts = "--ckan-ini test.ini"
filterwarnings = [
"ignore::sqlalchemy.exc.SADeprecationWarning",
"ignore::sqlalchemy.exc.SAWarning",
"ignore::DeprecationWarning",
]
[tool.pyright]
pythonVersion = "3.7"
include = ["ckanext"]
exclude = [
"**/test*",
"**/migration",
]
strict = []
strictParameterNoneValue = true # type must be Optional if default value is None
# Check the meaning of rules here
# https://github.com/microsoft/pyright/blob/main/docs/configuration.md
reportFunctionMemberAccess = true # non-standard member accesses for functions
reportMissingImports = true
reportMissingModuleSource = true
reportMissingTypeStubs = false
reportImportCycles = true
reportUnusedImport = true
reportUnusedClass = true
reportUnusedFunction = true
reportUnusedVariable = true
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 = true
reportIncompatibleMethodOverride = true
reportIncompatibleVariableOverride = true
reportOverlappingOverload = true
reportUntypedFunctionDecorator = false
reportUnknownParameterType = true
reportUnknownArgumentType = false
reportUnknownLambdaType = false
reportUnknownMemberType = false
reportMissingTypeArgument = true
reportInvalidTypeVarUse = true
reportCallInDefaultInitializer = true
reportUnknownVariableType = true
reportUntypedBaseClass = true
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
reportGeneralTypeIssues = true
reportPropertyTypeMismatch = true
reportWildcardImportFromLibrary = true
reportUntypedClassDecorator = false # authenticator relies on repoze.who class-decorator
reportUntypedNamedTuple = true
reportPrivateUsage = true
reportPrivateImportUsage = true
reportInconsistentConstructor = true
reportMissingSuperCall = false
reportUninitializedInstanceVariable = true
reportInvalidStringEscapeSequence = true
reportMissingParameterType = true
reportImplicitStringConcatenation = false
reportUndefinedVariable = true
reportUnboundVariable = true
reportInvalidStubStatement = true
reportIncompleteStub = true
reportUnsupportedDunderAll = true
reportUnusedCoroutine = true
reportUnnecessaryTypeIgnoreComment = true
reportMatchNotExhaustive = true