forked from frenck/python-tailscale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
168 lines (145 loc) · 3.64 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
[tool.poetry]
name = "tailscale"
version = "0.0.0"
description = "Asynchronous client for the Tailscale API."
authors = ["Franck Nijhof <opensource@frenck.dev>"]
maintainers = ["Franck Nijhof <opensource@frenck.dev>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/frenck/python-tailscale"
repository = "https://github.com/frenck/python-tailscale"
documentation = "https://github.com/frenck/python-tailscale"
keywords = ["tailscale", "vpn", "wireguard", "api", "async", "client"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
]
packages = [
{ include = "tailscale", from = "src" },
]
[tool.poetry.dependencies]
python = "^3.9"
aiohttp = ">=3.0.0"
yarl = ">=1.6.0"
pydantic = ">=1.8,<3.0"
[tool.poetry.dev-dependencies]
aresponses = "^2.1.6"
black = "^22.12"
blacken-docs = "^1.15.0"
coverage = {version = "^7.2", extras = ["toml"]}
flake8 = "^4.0.1"
flake8-docstrings = "^1.7.0"
isort = "^5.12.0"
mypy = "^1.4"
pre-commit = "^3.3.3"
pre-commit-hooks = "^4.4.0"
pylint = "^2.17.4"
pytest = "^7.4.0"
pytest-asyncio = "^0.21.1"
pytest-cov = "^4.1.0"
yamllint = "^1.32.0"
pyupgrade = "^3.9.0"
flake8-simplify = "^0.20.0"
vulture = "^2.7"
flake8-bandit = "^3.0.0"
flake8-bugbear = "^23.3.12"
flake8-builtins = "^2.1.0"
flake8-comprehensions = "^3.14.0"
flake8-eradicate = "^1.4.0"
flake8-markdown = "^0.3.0"
darglint = "^1.8.1"
safety = "^2.3.5"
codespell = "^2.2.5"
bandit = "^1.7.5"
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/frenck/python-tailscale/issues"
Changelog = "https://github.com/frenck/python-tailscale/releases"
[tool.black]
target-version = ['py39']
[tool.coverage.paths]
source = ["src"]
[tool.coverage.report]
show_missing = true
[tool.coverage.run]
branch = true
source = ["tailscale"]
[tool.isort]
profile = "black"
multi_line_output = 3
[tool.mypy]
# Specify the target platform details in config, so your developers are
# free to run mypy on Windows, Linux, or macOS and get consistent
# results.
platform = "linux"
python_version = 3.9
# flake8-mypy expects the two following for sensible formatting
show_column_numbers = true
# show error messages from unrelated files
follow_imports = "normal"
# suppress errors about unsatisfied imports
ignore_missing_imports = true
# be strict
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_untyped_decorators = false # thanks backoff :(
no_implicit_optional = true
no_implicit_reexport = true
strict_optional = true
warn_incomplete_stub = true
warn_no_return = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
# No incremental mode
cache_dir = "/dev/null"
[tool.pylint.MASTER]
extension-pkg-whitelist = [
"pydantic"
]
ignore= [
"tests"
]
[tool.pylint.BASIC]
good-names = [
"_",
"ex",
"fp",
"i",
"id",
"j",
"k",
"on",
"Run",
"T",
]
[tool.pylint.DESIGN]
max-attributes = 8
[tool.pylint."MESSAGES CONTROL"]
disable= [
"format",
"unsubscriptable-object",
]
[tool.pylint.SIMILARITIES]
ignore-imports = true
[tool.pylint.FORMAT]
max-line-length=88
[tool.pytest.ini_options]
addopts = "--cov"
[tool.vulture]
min_confidence = 80
paths = ["src", "tests"]
verbose = true
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"