Skip to content

Commit 29045b0

Browse files
Bump pylint from 2.13.9 to 2.14.3 (esphome#3589)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
1 parent 311a48c commit 29045b0

File tree

7 files changed

+11
-16
lines changed

7 files changed

+11
-16
lines changed

esphome/components/time/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ def _parse_cron_part(part, min_value, max_value, special_mapping):
126126
)
127127
begin, end = data
128128
begin_n = _parse_cron_int(
129-
begin, special_mapping, "Number for time range must be integer, " "got {}"
129+
begin, special_mapping, "Number for time range must be integer, got {}"
130130
)
131131
end_n = _parse_cron_int(
132-
end, special_mapping, "Number for time range must be integer, " "got {}"
132+
end, special_mapping, "Number for time range must be integer, got {}"
133133
)
134134
if end_n < begin_n:
135135
return set(range(end_n, max_value + 1)) | set(range(min_value, begin_n + 1))
@@ -139,7 +139,7 @@ def _parse_cron_part(part, min_value, max_value, special_mapping):
139139
_parse_cron_int(
140140
part,
141141
special_mapping,
142-
"Number for time expression must be an " "integer, got {}",
142+
"Number for time expression must be an integer, got {}",
143143
)
144144
}
145145

esphome/config_validation.py

+6-8
Original file line numberDiff line numberDiff line change
@@ -972,9 +972,9 @@ def ipv4(value):
972972
elif isinstance(value, IPAddress):
973973
return value
974974
else:
975-
raise Invalid("IPv4 address must consist of either string or " "integer list")
975+
raise Invalid("IPv4 address must consist of either string or integer list")
976976
if len(parts) != 4:
977-
raise Invalid("IPv4 address must consist of four point-separated " "integers")
977+
raise Invalid("IPv4 address must consist of four point-separated integers")
978978
parts_ = list(map(int, parts))
979979
if not all(0 <= x < 256 for x in parts_):
980980
raise Invalid("IPv4 address parts must be in range from 0 to 255")
@@ -994,10 +994,10 @@ def _valid_topic(value):
994994
raise Invalid("MQTT topic name/filter must not be empty.")
995995
if len(raw_value) > 65535:
996996
raise Invalid(
997-
"MQTT topic name/filter must not be longer than " "65535 encoded bytes."
997+
"MQTT topic name/filter must not be longer than 65535 encoded bytes."
998998
)
999999
if "\0" in value:
1000-
raise Invalid("MQTT topic name/filter must not contain null " "character.")
1000+
raise Invalid("MQTT topic name/filter must not contain null character.")
10011001
return value
10021002

10031003

@@ -1009,7 +1009,7 @@ def subscribe_topic(value):
10091009
i < len(value) - 1 and value[i + 1] != "/"
10101010
):
10111011
raise Invalid(
1012-
"Single-level wildcard must occupy an entire " "level of the filter"
1012+
"Single-level wildcard must occupy an entire level of the filter"
10131013
)
10141014

10151015
index = value.find("#")
@@ -1021,9 +1021,7 @@ def subscribe_topic(value):
10211021
"character in the topic filter."
10221022
)
10231023
if len(value) > 1 and value[index - 1] != "/":
1024-
raise Invalid(
1025-
"Multi-level wildcard must be after a topic " "level separator."
1026-
)
1024+
raise Invalid("Multi-level wildcard must be after a topic level separator.")
10271025

10281026
return value
10291027

esphome/espota2.py

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ def update(self, progress):
6060
sys.stderr.write(text)
6161
sys.stderr.flush()
6262

63-
# pylint: disable=no-self-use
6463
def done(self):
6564
sys.stderr.write("\n")
6665
sys.stderr.flush()

esphome/util.py

-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ def write(self, s):
152152
# any caller.
153153
return len(s)
154154

155-
# pylint: disable=no-self-use
156155
def isatty(self):
157156
return True
158157

esphome/wizard.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def wizard(path):
343343
sleep(1)
344344

345345
safe_print_step(3, WIFI_BIG)
346-
safe_print("In this step, I'm going to create the configuration for " "WiFi.")
346+
safe_print("In this step, I'm going to create the configuration for WiFi.")
347347
safe_print()
348348
sleep(1)
349349
safe_print(

pylintrc

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ disable=
2424
undefined-loop-variable,
2525
useless-object-inheritance,
2626
stop-iteration-return,
27-
no-self-use,
2827
import-outside-toplevel,
2928
# Broken
3029
unsupported-membership-test,

requirements_test.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pylint==2.13.9
1+
pylint==2.14.3
22
flake8==4.0.1
33
black==22.3.0
44
pyupgrade==2.32.1

0 commit comments

Comments
 (0)