forked from pirxthepilot/wtfis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
112 lines (100 loc) · 2.19 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
[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.0",
"python-dotenv~=1.0.1",
"requests~=2.31.0",
"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",
"flake8>=7.0.0",
"freezegun",
"mypy",
"pytest",
"pytest-cov",
"types-requests~=2.31.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",
"flake8>=6.0.0",
]
[tool.hatch.envs.lint.scripts]
flake = "flake8 {args:wtfis}"
security = "bandit --quiet -r {args:wtfis}"
all = [
"flake",
"security",
]
# 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",
]