-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
118 lines (104 loc) · 3.31 KB
/
Copy pathpyproject.toml
File metadata and controls
118 lines (104 loc) · 3.31 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
[build-system]
requires = ["setuptools>=64", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "whois-python"
version = "1.0.0"
description = "Simple and fast domain WHOIS lookup and availability checking, with no dependencies."
readme = "README.md"
requires-python = ">=3.8"
license = { text = "MIT" }
authors = [{ name = "MonoVM", email = "dev@monovm.com" }]
maintainers = [{ name = "MonoVM", email = "dev@monovm.com" }]
keywords = [
"whois",
"rdap",
"domain",
"domain-availability",
"domain-checker",
"tld",
"dns",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Internet :: Name Service (DNS)",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Networking",
"Typing :: Typed",
]
dependencies = []
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"ruff>=0.4",
"mypy>=1.0",
"build>=1.0",
"twine>=5.0",
]
[project.urls]
Homepage = "https://github.com/monovm/whois-python"
Repository = "https://github.com/monovm/whois-python"
Issues = "https://github.com/monovm/whois-python/issues"
Changelog = "https://github.com/monovm/whois-python/blob/main/CHANGELOG.md"
"PHP version" = "https://github.com/monovm/whois-php"
[project.scripts]
monovm-whois = "monovm_whois.cli:main"
[tool.setuptools]
package-dir = { "" = "src" }
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
monovm_whois = ["py.typed", "data/*.json"]
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"network: test performs a real WHOIS/RDAP query (set RUN_NETWORK_TESTS=1 to enable)",
]
filterwarnings = ["error::DeprecationWarning"]
[tool.coverage.run]
branch = true
source = ["monovm_whois"]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"@abstractmethod",
]
[tool.ruff]
line-length = 100
target-version = "py38"
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "C4", "SIM", "RET", "ARG", "PL"]
ignore = [
"UP032", # str.format is used throughout for 3.8 compatibility
"PLR0913", # collaborators are injected, so constructors take several arguments
"PLR0917", # ditto, counted positionally
"PLR2004", # thresholds are named constants where they matter
"ARG002", # signatures fixed by a base class (urllib handlers, DetectionRule)
]
[tool.ruff.lint.per-file-ignores]
# Tests import inside functions to keep each case self-describing, and call
# private helpers on purpose when that is what is under test.
"tests/*" = ["ARG001", "PLC0415", "PLR2004", "SLF001"]
[tool.mypy]
packages = ["monovm_whois"]
ignore_missing_imports = true
strict = true
warn_unreachable = true