-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
206 lines (177 loc) · 4.01 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
[tool.poetry]
name = "aia-chaser"
version = "1.1.0"
license = "MIT"
readme = "README.md"
repository = "https://github.com/jponf/aia-chaser"
description = "Chase authority information access from a host certificate to complete the chain of trust."
authors = ["Josep Pon Farreny <[email protected]>"]
keywords = ["AIA", "SSL", "TLS", "X.509", "Certificate Chain"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Security",
"Topic :: System :: Networking",
]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.masonry.api"
[tool.poetry_bumpversion.file."aia_chaser/__init__.py"]
[tool.poetry.dependencies]
python = "^3.8"
cryptography = ">=40.0"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
# Formatters
black = "^22.12.0"
isort = "^5.13.2"
# Linters
mypy = "^1.8.0"
ruff = "^0.1"
pylint = "^3.0.3" # for pyreverse
# Packages vulnerabilities scan
safety = "*"
# Other tools
rope = "^1.11.0" # Rename variables
pipdeptree = "^2.13.2"
pre-commit = "^3.5.0"
toml = "^0.10.2"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = "^7.4.4"
pytest-cov = "^4.1.0"
pytest-randomly = "^3.15.0" # random shuffle tests
xdoctest = "^1.1.2"
faker = "^22.4.0"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
markdown-include = "*"
pymdown-extensions = "*"
[tool.black]
target-version = ["py36", "py37", "py38"]
line-length = 88
[tool.isort]
profile = "black"
lines_after_imports = 2
[tool.mypy]
cache_dir = ".cache/mypy/"
ignore_missing_imports = true
no_implicit_optional = true
check_untyped_defs = true
strict_equality = true
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
warn_redundant_casts = true
warn_unused_ignores = true
exclude = "docs/"
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
disallow_incomplete_defs = false
[tool.pytest.ini_options]
cache_dir = ".cache"
testpaths = [
"tests",
"aia_chaser"
]
addopts = [
"--strict",
"-r sxX",
"--cov-report=html",
"--cov-report=term-missing:skip-covered",
"--no-cov-on-fail",
"--xdoc",
]
console_output_style = "count"
markers = ""
filterwarnings = [
"ignore::DeprecationWarning",
]
[tool.bumpversion]
current_version = "1.0.0"
commit = false
commit_args = "--no-verify"
tag = false
tag_name = "{new_version}"
allow_dirty = true
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(\\.(?P<dev>post)\\d+\\.dev\\d+)?"
serialize = [
"{major}.{minor}.{patch}.dev-{dev}",
"{major}.{minor}.{patch}"
]
message = "Version updated from {current_version} to {new_version}"
[[tool.bumpversion.files]]
filename = "aia_chaser/__init__.py"
[tool.ruff]
cache-dir = ".cache/ruff"
exclude = [
".git",
"__pycache__",
"docs/source/conf.py",
"old",
"build",
"dist",
".venv",
"scripts",
]
line-length = 88
select = [
"A",
"B",
"C9",
"COM",
"D",
"I",
"E",
"F",
"N",
# "NPY",
"PIE",
"Q",
# "RST",
"RUF",
"S",
"SIM",
"SLOT",
"T",
"W",
]
ignore = [
"D100",
"D104",
"D107",
"D401",
]
[tool.ruff.flake8-quotes]
inline-quotes = "double"
[tool.ruff.isort]
lines-after-imports = 2
[tool.ruff.mccabe]
max-complexity = 18
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.per-file-ignores]
"*/__init__.py" = [
"F401",
]
"tests/*.py" = [
"D103",
"S101",
]
"aia_chaser/cli.py" = ["B008"]