-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpyproject.toml
More file actions
196 lines (173 loc) · 4.36 KB
/
pyproject.toml
File metadata and controls
196 lines (173 loc) · 4.36 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "whoisdomain"
dynamic = ['version']
authors = [
{ name="mboot-github"},
]
maintainers = [
{ name="Maarten Boot", email="130295084+mboot-github@users.noreply.github.com" },
]
description = "Python package for retrieving WHOIS information of domains."
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Environment :: Console",
"Programming Language :: Python :: 3",
"Topic :: Internet",
"Topic :: Software Development :: Libraries :: Python Modules",
]
keywords = [
"Python",
"whois",
"tld",
"domain",
"expiration",
"registrar",
]
[project.scripts]
whoisdomain = 'whoisdomain.main:main'
[project.urls]
"Bug Tracker" = "https://github.com/mboot-github/WhoisDomain/issues"
"Home Page" = "https://github.com/mboot-github/WhoisDomain/"
"Repository" = "https://github.com/mboot-github/WhoisDomain/"
[tool.hatch.version]
path = "whoisdomain/version.py"
[tool.hatch.build]
only-packages = true
include = [
"whoisdomain/",
]
exclude = [
"/Old/*",
"/lib/*",
"/etc/*",
"/bin/*",
"/testdata/*",
"Makefile",
".gitignore",
"/.gitignore",
]
[tool.pylama]
max_line_length = 160
skip = "*/.pytest_cache/*, */.tox/*, */mypy_cache/*, ./dist, ./docs"
[tool.ruff]
target-version = "py310"
# Same as Black.
line-length = 160
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
[tool.ruff.lint]
select = [
"AIR",
"FAST",
"YTT",
"ASYNC",
"S1", "S2", "S302", "S303", "S304", "S305", "S306", "S307", "S31", "S32", "S401", "S402", "S406", "S407", "S408", "S409", "S41", "S5", "S601", "S602", "S604", "S605", "S606", "S607", "S609", "S61", "S7",
"FBT",
"B00", "B01", "B020", "B021", "B022", "B023", "B025", "B027", "B028", "B029", "B03", "B901", "B903", "B905", "B911",
"A",
"COM",
"C4",
"DTZ003", "DTZ004", "DTZ012", "DTZ901",
"T10",
"DJ003", "DJ01",
"EM",
"EXE",
"FIX",
"FA",
"INT",
"ISC",
"ICN",
"LOG",
"G001", "G002", "G01", "G1", "G2",
"INP",
"PIE",
"T20",
"PYI",
"PT",
"Q",
"RSE",
"RET",
"SIM",
"SLOT",
"TID",
"TD001", "TD004", "TD005", "TD007",
"TC",
"ARG003", "ARG004", "ARG005",
"PTH",
"FLY",
"I",
"C90",
"NPY",
"PD",
"N803", "N804", "N805", "N811", "N812", "N813", "N814", "N817", "N818", "N999",
"PERF1", "PERF2", "PERF401",
"E",
"W",
"DOC202", "DOC403", "DOC502",
"D2", "D3", "D402", "D403", "D405", "D406", "D407", "D408", "D409", "D410", "D411", "D412", "D413", "D414", "D416",
"F",
"PGH",
"PLC",
"PLE",
"PLR01", "PLR02", "PLR04", "PLR0915", "PLR1711", "PLR1704", "PLR1714", "PLR1716", "PLR172", "PLR173", "PLR2044", "PLR5", "PLR6104", "PLR6201",
"PLW",
"UP",
"FURB",
"RUF",
"TRY003", "TRY004", "TRY2", "TRY300", "TRY401",
]
ignore = [
# ignore for now:
"S101", "N803", "N999", "PLR6201",
"S602", "FBT002", "FBT001", "RUF001", "N812", "PLW0603", "PLW0602",
"PLW2901", "PIE810", "PERF203", "FIX004", "N818",
"RUF067",
# end for now.
"COM812", "D203",
"T201", # print statements are ok
"SIM102",
"RUF012",
"D205",
"FIX002", # TODOs need some love but we will probably not get of them
"D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible.
"PT028", # experimental rule, incomplete
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
preview = true
[tool.ruff.lint.per-file-ignores]
[tool.ruff.lint.flake8-boolean-trap]
[tool.ruff.lint.pylint]
max-statements = 234
[tool.ruff.lint.mccabe]
max-complexity = 70 # value is far from perfect (recommended default is 10). But we will try to decrease it over the time.