-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
123 lines (108 loc) · 2.91 KB
/
pyproject.toml
File metadata and controls
123 lines (108 loc) · 2.91 KB
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
[build-system]
requires = ["setuptools>=64", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "know_your_ip"
version = "0.2.1"
description = "Get data on IP addresses"
readme = "README.md"
license = "MIT"
authors = [
{name = "Suriyan Laohaprapanon", email = "suriyant@gmail.com"},
{name = "Gaurav Sood", email = "gsood07@gmail.com"}
]
keywords = ["ip", "geoip", "ipvoid", "abuseip", "shodan", "virustotal", "blacklisted", "geolocation", "cybersecurity"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet",
"Topic :: Security",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Networking",
"Topic :: Utilities"
]
requires-python = ">=3.11"
dependencies = [
"geoip2",
"tzwhere",
"BeautifulSoup4",
"lxml",
"shodan",
"requests",
"pydantic>=2.0"
]
[project.optional-dependencies]
dev = [
"ruff",
"pytest",
"pytest-cov",
"pre-commit",
"build",
"twine"
]
test = [
"pytest",
"pytest-cov",
"pytest-mock"
]
docs = [
"sphinx>=7.0",
"furo",
"sphinx-copybutton",
"myst-parser"
]
[project.urls]
Homepage = "https://github.com/themains/know-your-ip"
Repository = "https://github.com/themains/know-your-ip"
Documentation = "https://themains.github.io/know-your-ip/"
"Bug Tracker" = "https://github.com/themains/know-your-ip/issues"
[project.scripts]
know_your_ip = "know_your_ip.know_your_ip:main"
[tool.setuptools]
packages = ["know_your_ip"]
# No package data files needed - using embedded category mappings
[tool.ruff]
line-length = 88
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q --strict-markers"
testpaths = ["tests"]
[tool.deptry]
# Exclude directories from scanning
extend_exclude = [
".tox",
".mypy_cache",
"build",
"dist",
"docs"
]
# Map package names to module names for correct detection
package_module_name_map = { "BeautifulSoup4" = "bs4" }
# Development dependency groups to ignore for unused dependency checks
pep621_dev_dependency_groups = ["dev", "test", "docs"]
# Ignore lxml - used indirectly by BeautifulSoup as XML parser
per_rule_ignores = { "DEP002" = ["lxml"] }