-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
95 lines (73 loc) · 2.56 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
[tool.poetry]
name = "wsadmin-type-hints"
version = "0.3.0"
description = "Provide type hints for `wsadmin` object methods"
authors = ["Luca Salvarani <lucasalvarani99@gmail.com>"]
license = "MIT"
readme = "README.md"
packages = [
{ include = "wsadmin_type_hints", from = "src" }
]
homepage = "https://lukesavefrogs.github.io/wsadmin-type-hints/"
repository = "https://github.com/LukeSavefrogs/wsadmin-type-hints/"
documentation = "https://lukesavefrogs.github.io/wsadmin-type-hints/"
keywords = ["wsadmin", "ibm", "stubs", "types", "jython", "autocompletion", "intellisense"]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/LukeSavefrogs/wsadmin-type-hints/issues"
[tool.poetry.dependencies]
python = ">=3.8,<=3.11"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
poethepoet = "^0.24.0"
types-requests = "^2.28.11.12"
beautifulsoup4 = "^4.11.2"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.4.2"
mkdocs-material = "^9.0.11"
mkdocstrings = {extras = ["python"], version = "^0.24.0"}
mkdocs-git-revision-date-localized-plugin = "^1.1.0"
mkdocs-section-index = "^0.3.5"
mkdocs-literate-nav = "^0.6.0"
mkdocs-gen-files = "^0.5.0"
mkdocs-simple-hooks = "^0.1.5"
[tool.poetry.group.linting.dependencies]
mypy = "^1.4.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poe.tasks.docs]
env = { IS_PRODUCTION = "false", SERVER_ADDRESS = "127.0.0.1:8000", PYTHONPATH="." }
help = "Start the local server to test the documentation."
sequence = [
{ script = "scripts.build:clear_cache()" },
{ cmd = "mkdocs serve --watch-theme --dev-addr $SERVER_ADDRESS" },
]
[tool.poe.tasks.lint]
help = "Initiate the linting process"
sequence = [
{ cmd = "mypy --version" },
{ shell = "mypy --ignore-missing-imports --no-warn-no-return --disable-error-code 'no-untyped-def' --disable-error-code 'empty-body' src" },
]
[tool.mypy]
strict = true
warn_no_return = false
warn_return_any = false
allow_untyped_defs = true
warn_incomplete_stub = false
ignore_missing_imports = true
# disable_error_code = "no-untyped-def, empty-body, misc"
[tool.pyright]
typeCheckingMode = "strict"
# https://github.com/microsoft/pyright/blob/main/docs/configuration.md#type-check-diagnostics-settings
reportUnnecessaryTypeIgnoreComment = false
reportOverlappingOverload = true
reportUnknownArgumentType = true
reportUnknownParameterType = true
reportUnknownVariableType = true
reportUnknownMemberType = true
reportMissingParameterType = true
reportMissingTypeArgument = true
strictParameterNoneValue = true