Skip to content

Commit 384be63

Browse files
committed
specific C901 ignore
1 parent 7fbf206 commit 384be63

5 files changed

Lines changed: 6 additions & 15 deletions

File tree

pyproject.toml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,3 @@
178178
fixable = ["ALL"]
179179
unfixable = []
180180
preview = true
181-
182-
[tool.ruff.lint.per-file-ignores]
183-
184-
[tool.ruff.lint.flake8-boolean-trap]
185-
186-
[tool.ruff.lint.pylint]
187-
max-statements = 234
188-
189-
[tool.ruff.lint.mccabe]
190-
max-complexity = 70 # value is far from perfect (recommended default is 10). But we will try to decrease it over the time.

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
whodap==0.1.15

whoisdomain/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def splitBodyInSections(
111111

112112
return sections2
113113

114-
def cleanupWhoisResponse(
114+
def cleanupWhoisResponse( # noqa: C901
115115
self,
116116
verbose: bool = False,
117117
with_cleanup_results: bool = False,
@@ -295,7 +295,7 @@ def errorItem(d: str, e: Any, what: str = "Generic") -> None:
295295
print(message)
296296

297297

298-
def testDomains(aList: list[str]) -> None:
298+
def testDomains(aList: list[str]) -> None: # noqa: C901
299299
for d in aList:
300300
# skip empty lines
301301
if not d:
@@ -531,7 +531,7 @@ def showFailures() -> None:
531531
print(i, j, Failures[i][j])
532532

533533

534-
def main() -> None:
534+
def main() -> None: # noqa: C901,PLR0915
535535
global PrintJson, Verbose, IgnoreReturncode, PrintGetRawWhoisResult, Ruleset, SIMPLISTIC, WithRedacted, TestAllTld, TestRunOnly, WithPublicSuffix, WithExtractServers, WithStripHttpStatus, WithNoIgnoreWww # noqa: E501 # pylint: disable=line-too-long
536536

537537
name: str = pathlib.Path(sys.argv[0]).name

whoisdomain/processWhoisDomainRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __init__(
4141
if self.pc.verbose:
4242
logging.basicConfig(level="DEBUG")
4343

44-
def _analyzeDomainStringAndValidate(
44+
def _analyzeDomainStringAndValidate( # noqa: C901
4545
self,
4646
) -> None:
4747
def _internationalizedDomainNameToPunyCode(d: list[str]) -> list[str]:

whoisdomain/whoisParser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def _extractWhoisServer(self) -> list[str]:
266266

267267
return []
268268

269-
def _cleanupWhoisResponse(
269+
def _cleanupWhoisResponse( # noqa: C901
270270
self,
271271
) -> str:
272272
tmp2: list[str] = []

0 commit comments

Comments
 (0)