forked from pirxthepilot/wtfis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
126 lines (113 loc) · 2.49 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "wtfis"
description = "Passive hostname, domain and IP lookup tool for non-robots"
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
keywords = [
"ipinfo",
"osint",
"passive lookup",
"passivetotal",
"security",
"shodan",
"virustotal",
"whois",
]
authors = [
{name = "pirxthepilot", email = "[email protected]"}
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Topic :: Security",
]
dependencies = [
"pydantic~=2.7.2",
"python-dotenv~=1.0.1",
"requests~=2.32.3",
"rich~=13.7.1",
"shodan~=1.31.0",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/pirxthepilot/wtfis"
[project.scripts]
wtfis = "wtfis.main:main"
[tool.hatch.version]
path = "wtfis/__about__.py"
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
]
[tool.hatch.build.targets.wheel]
[tool.hatch.publish.index]
disable = true
# Hatch default env
[tool.hatch.envs.default]
dependencies = [
"bandit",
"black~=24.4.2",
"flake8>=7.0.0",
"flake8-bugbear~=24.4.6",
"freezegun",
"isort~=5.13.2",
"mypy",
"pytest",
"pytest-cov",
"types-requests~=2.32.0",
]
[tool.hatch.envs.default.scripts]
typecheck = "mypy -p {args:wtfis}"
test = "pytest -vv {args:tests/}"
test-cov = "pytest --cov-config=pyproject.toml --cov-report=term-missing --cov=wtfis {args:tests/}"
test-all = [
"typecheck",
"test-cov",
]
# Hatch test env
[[tool.hatch.envs.test.matrix]]
python = ["38", "39", "310", "311", "312"]
# Hatch lint env
[tool.hatch.envs.lint]
detached = true
dependencies = [ # Make sure the respective versions are synced with default!
"bandit",
"black~=24.4.2",
"flake8>=7.0.0",
"flake8-bugbear~=24.4.6",
"isort~=5.13.2",
]
[tool.hatch.envs.lint.scripts]
black_check = "black --check wtfis tests"
isort_check = "isort --check-only wtfis tests"
flake = "flake8 wtfis tests"
security = "bandit --quiet -r wtfis"
all = [
"black_check",
"isort_check",
"flake",
"security",
]
# isort
[tool.isort]
profile = "black"
# mypy
[tool.mypy]
ignore_missing_imports = true
no_implicit_optional = true
warn_unreachable = true
pretty = true
# pytest-cov
[tool.coverage.run]
omit = [
"*/__init__.py",
"*/__about__.py",
"wtfis/version.py",
"wtfis/ui/progress.py",
]