-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
114 lines (98 loc) · 2.92 KB
/
pyproject.toml
File metadata and controls
114 lines (98 loc) · 2.92 KB
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "hatch-gradle-version"
version = "0.9.12"
authors = [
{ name="object-Object", email="[email protected]" },
]
readme = "README.md"
classifiers = [
"Framework :: Hatch",
]
requires-python = ">=3.11"
dependencies = [
"hatchling~=1.18",
"jproperties~=2.1",
# 2.12.0: https://github.com/pydantic/pydantic/issues/12347
"pydantic~=2.3,!=2.12.0",
"casefy~=0.1.7",
"black==23.7.0",
]
[project.optional-dependencies]
dev = [
"hatch-gradle-version[test]",
"isort==5.12.0",
"build",
"twine",
]
test = [
"pytest~=7.3",
]
[project.urls]
"Homepage" = "https://github.com/hexdoc-dev/hatch-gradle-version"
"Bug Tracker" = "https://github.com/hexdoc-dev/hatch-gradle-version/issues"
[tool.hatch.build.targets.wheel]
packages = ["src/hatch_gradle_version"]
[project.entry-points.hatch]
gradle_version = "hatch_gradle_version._hooks"
# pytest
[tool.pytest.ini_options]
addopts = ["--import-mode=importlib"]
filterwarnings = [
'ignore:Dependency on package .+? will ONLY accept:UserWarning:hatch_gradle_version.common.gradle',
]
# formatting/linting
[tool.isort]
profile = "black"
combine_as_imports = true
[tool.pyright]
pythonVersion = "3.11"
pythonPlatform = "All"
exclude = ["venv"]
# mostly we use strict mode
# but pyright doesn't allow decreasing error severity in strict mode
# so we need to manually specify all of the strict mode overrides so we can do that :/
typeCheckingMode = "basic"
strictDictionaryInference = true
strictListInference = true
strictSetInference = true
reportAssertAlwaysTrue = "error"
reportConstantRedefinition = "error"
reportDeprecated = "error"
reportDuplicateImport = "error"
reportFunctionMemberAccess = "error"
reportIncompatibleMethodOverride = "error"
reportIncompatibleVariableOverride = "error"
reportIncompleteStub = "error"
reportInconsistentConstructor = "error"
reportInvalidStringEscapeSequence = "error"
reportInvalidStubStatement = "error"
reportInvalidTypeVarUse = "error"
reportMatchNotExhaustive = "error"
reportMissingParameterType = "error"
reportMissingTypeStubs = "error"
reportOverlappingOverload = "error"
reportSelfClsParameterName = "error"
reportTypeCommentUsage = "error"
reportUnknownParameterType = "error"
reportUnnecessaryCast = "error"
reportUnnecessaryContains = "error"
reportUnsupportedDunderAll = "error"
reportUntypedBaseClass = "error"
reportUntypedClassDecorator = "error"
reportUntypedFunctionDecorator = "error"
reportUntypedNamedTuple = "error"
reportWildcardImportFromLibrary = "error"
reportMissingTypeArgument = "warning"
reportPrivateUsage = "warning"
reportUnknownLambdaType = "warning"
reportUnnecessaryComparison = "warning"
reportUnnecessaryIsInstance = "warning"
reportUnusedClass = "warning"
reportUnusedExpression = "warning"
reportUnusedFunction = "warning"
reportUnusedImport = "warning"
reportUnusedVariable = "warning"
reportUnknownVariableType = "none"