-
Notifications
You must be signed in to change notification settings - Fork 11
/
pyproject.toml
92 lines (80 loc) · 2.17 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
# SPDX-FileCopyrightText: 2022-2024 Carnegie Mellon University
# SPDX-License-Identifier: 0BSD
[tool.poetry]
name = "wireguard-tools"
version = "0.5.0.post.dev0"
description = "Pure python reimplementation of wireguard-tools"
authors = [
"Carnegie Mellon University <[email protected]>",
"Jan Harkes <[email protected]>",
]
license = "MIT"
readme = "README.md"
repository = "https://github.com/cmusatyalab/wireguard-tools"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Topic :: Software Development :: Libraries :: Python Modules",
]
packages = [
{include = "wireguard_tools", from = "src"},
]
include = [
{path = "LICENSES", format = "sdist"},
{path = "tests", format = "sdist"},
]
[tool.poetry.scripts]
wg-py = "wireguard_tools.cli:main"
[tool.poetry.dependencies]
python = "^3.7"
attrs = ">=22.1.0"
pyroute2 = "^0.7.3"
segno = "^1.5.2"
[tool.poetry.group.dev.dependencies]
black = { version=">=24.3.0", python = "^3.8" }
poethepoet = "^0.16.5"
pre-commit = { version = "^3.5.0", python = "^3.8.1" }
tbump = "^6.9.0"
[tool.poetry.group.test.dependencies]
mypy = "^0.991"
pytest = "^6.2.5"
pytest-mock = "^3.6.1"
[tool.black]
target-version = ["py37"]
[tool.isort]
py_version = 37
profile = "black"
[tool.mypy]
# Ensure full coverage
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
check_untyped_defs = true
# Restrict dynamic typing
disallow_any_generics = true
disallow_subclassing_any = true
warn_return_any = true
# Know exactly what you're doing
warn_redundant_casts = true
warn_unused_ignores = true
warn_unused_configs = true
warn_unreachable = true
show_error_codes = true
# Explicit is better than implicit
no_implicit_optional = true
files = ["src", "tests"]
[[tool.mypy.overrides]]
# pytest decorators are not typed
module = "tests.*"
disallow_untyped_decorators = false
[[tool.mypy.overrides]]
module = "pyroute2.*"
ignore_missing_imports = true
[tool.poe]
include = "tasks.toml"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"