From: Bob Halley Date: Sat, 7 Oct 2023 18:35:56 +0000 (-0700) Subject: update pylint X-Git-Tag: v2.5.0rc1~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=447d5295fc5cb11ed73682ea025f366c2cb11b2b;p=thirdparty%2Fdnspython.git update pylint --- diff --git a/dns/rdtypes/svcbbase.py b/dns/rdtypes/svcbbase.py index 7544d58f..db9b0e21 100644 --- a/dns/rdtypes/svcbbase.py +++ b/dns/rdtypes/svcbbase.py @@ -2,7 +2,6 @@ import base64 import enum -import io import struct import dns.enum diff --git a/dns/rdtypes/txtbase.py b/dns/rdtypes/txtbase.py index 690a1997..cdfcc31c 100644 --- a/dns/rdtypes/txtbase.py +++ b/dns/rdtypes/txtbase.py @@ -17,7 +17,6 @@ """TXT-like base class.""" -import struct from typing import Any, Dict, Iterable, Optional, Tuple, Union import dns.exception diff --git a/pylintrc b/pylintrc index 306429ea..28e105a4 100644 --- a/pylintrc +++ b/pylintrc @@ -33,6 +33,8 @@ disable= consider-using-f-string, unspecified-encoding, useless-super-delegation, # not against this, but we have to do it for mypy happiness + use-implicit-booleaness-not-comparison-to-zero, # I often prefer non-implicit booleaness. + use-implicit-booleaness-not-comparison-to-string, [REPORTS] diff --git a/pyproject.toml b/pyproject.toml index 00fce59c..78aa03c2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,7 +56,7 @@ sphinx = "^7.0.0" coverage = "^7.0" twine = "^4.0.0" wheel = "^0.41.0" -pylint = "^2.7.4" +pylint = ">=2.7,<4" mypy = ">=1.0.1" black = "^23.1.0"