-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
144 lines (136 loc) · 3.71 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
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "certleak"
description = "Python tool to monitor and analyze TLS certificates as they are issued via certstream."
authors = [
{name = "d-Rickyy-b", email = "[email protected]"},
]
readme = "README.md"
license = { file = "LICENSE" }
#version = "0.0.1"
dynamic = ["version"]
keywords = ["python", "certificate", "tls", "osint", "framework"]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Security",
"Topic :: Internet",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
]
dependencies = [
"certstream>=1.12",
"dnstwist>=20240812",
"requests>=2.32",
"tldextract>=5.0",
]
[project.optional-dependencies]
dev = ["ruff"]
[project.urls]
Homepage = "https://github.com/d-Rickyy-b/certleak"
Issues = "https://github.com/d-Rickyy-b/certleak/issues"
[tool.setuptools.dynamic]
version = {attr = "certleak.version.__version__"}
[tool.ruff]
target-version = "py39"
line-length = 180
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN", # Annotations
"ARG002", # unused-method-argument
"BLE001", # Do not catch blind exception: `Exception`
"E501", # Line too long
"UP012",
"UP015",
"G004",
"COM812",
"T201",
"PLR1722",
"RET505",
"RET508",
"SLF001",
"PTH123",
"FBT001",
"FBT002",
"FBT003",
"D100", # undocumented-public-module
"D101", # undocumented-public-class
"D102", # undocumented-public-method
"D104", # undocumented-public-package
"D401", # non-imperative-mood
"D404", # docstring-starts-with-this
"D107", # undocumented-public-init
"D213", # multi-line-summary-second-line
"D203", # one-blank-line-before-class
"ERA001", # Found commented-out code
"FIX", # Disable all flake8-fixme warnings
"TD", # Disable all flake8-todos warnings
"SIM108", # Use ternary operator
"PT009", # pytest-unittest-assertion
"PT027", # pytest-unittest-raises-assertion
"PLR0911", # too-many-return-statements
"PLR0913", # too-many-arguments
"PIE790", # unnecessary-placeholder
"PERF203", # try-except-in-loop
]
[tool.ruff.format]
# Use `\n` line endings for all files
line-ending = "lf"
[tool.ruff.lint.per-file-ignores]
"certleak/core/certstreamdata/subject.py" = [
"E741", # Magic value used in comparison
]
"certleak/core/certstreamdata/extensions.py" = [
"N803", # Argument name should be lowercase
"N806", # Variable in function should be lowercase
]
"**_test.py" = [
"N802", # Function name should be lowercase
]
"certleak/util/request.py" = [
"ARG003", # Unused class method argument
]
"examples/example.py" = [
"INP001", # implicit-namespace-package
]
"certleak/analyzers/tldanalyzer.py" = [
"PERF401", # manual-list-comprehension
]