-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
150 lines (130 loc) · 3.38 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
[tool.poetry]
name = "desec-dns"
version = "0.0.0"
description = "A simple deSEC.io API client"
license = "MIT"
authors = ["Sebastian Hamann <[email protected]>"]
readme = "README.md"
repository = "https://github.com/s-hamann/desec-dns"
documentation = "https://s-hamann.github.io/desec-dns/"
classifiers = [
"Environment :: Console",
"Operating System :: OS Independent",
"Typing :: Typed",
]
packages = [{ include = "desec.py" }]
include = [
{ path = "CHANGELOG.md", format = "sdist" },
]
[tool.poetry.urls]
"Issue Tracker" = "https://github.com/s-hamann/desec-dns/issues"
Changelog = "https://github.com/s-hamann/desec-dns/blob/main/CHANGELOG.md"
[tool.poetry.dependencies]
python = ">=3.9"
requests = ">=2.0.0"
cryptography = { version = ">=42.0.0", optional = true }
dnspython = { version = ">=2.0.0", optional = true }
[tool.poetry.extras]
tlsa = ["cryptography"]
zonefiles = ["dnspython"]
all = ["cryptography", "dnspython"]
[tool.poetry.scripts]
desec = "desec:_main"
[tool.poetry.group.dev.dependencies]
ruff = ">=0.4.5"
mypy = ">=1.10.0"
types-requests = ">=2.32.0.20240602"
tox = ">=4.0.0"
pytest = ">=8.0.0"
pytest-recording = ">=0.13.1"
coverage = {version = ">=7.2.0", extras = ["toml"]}
pytest-cov = ">=3.0.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 99
target-version = "py39"
[tool.ruff.lint]
extend-select = [
"W", # pycodestyle warnings
"I", # isort
"N", # pep8-naming
"D", # pydocstyle
"UP", # pyupgrade
"S", # flake8-bandit
"B", # flake8-bugbear
"FA", # flake8-future-annotations
"PT", # flake8-pytest-style
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"RUF", # Ruff-specific rules
]
ignore = [
"D105", # undocumented-magic-method
"D107", # undocumented-public-init
"D203", # one-blank-line-before-class
"D213", # multi-line-summary-second-line
"PT003", # pytest-extraneous-scope-function
"PT006", # pytest-parametrize-names-wrong-type
"SIM105", # suppressible-exception
"SIM108", # if-else-block-instead-of-if-exp
"SIM212", # if-expr-with-twisted-arms
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"D", # pydocstyle
"S101", # assert
]
[tool.ruff.lint.pycodestyle]
max-doc-length = 92
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = [
"desec.TLSAUsage",
"desec.TLSASelector",
"desec.TLSAMatchType",
]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[tool.black]
line-length = 99
[tool.mypy]
disallow_any_generics = true
disallow_untyped_defs = true
disallow_untyped_decorators = true
strict_equality = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unreachable = true
enable_error_code = [
"redundant-expr",
"possibly-undefined",
"truthy-bool",
"ignore-without-code"
]
exclude = [
"^tests/",
]
[tool.coverage.run]
branch = true
[tool.coverage.html]
show_contexts = true
[tool.coverage.json]
show_contexts = true
[tool.coverage.report]
exclude_also = [
"if __name__ == [\"']__main__[\"']:",
"if (typing\\.|t\\.)?TYPE_CHECKING:",
"@(typing\\.|t\\.)?overload",
"raise NotImplementedError",
"raise APIExpectationError",
"except ModuleNotFoundError:",
]
[tool.coverage.paths]
source = [
".",
"/home/runner/work/desec-dns/desec-dns/",
]