diff --git a/adafruit_portalbase/network.py b/adafruit_portalbase/network.py index 501bb83..99f2383 100755 --- a/adafruit_portalbase/network.py +++ b/adafruit_portalbase/network.py @@ -271,9 +271,9 @@ class NetworkBase: year_day = int(times[2]) week_day = int(times[3]) is_dst = None # no way to know yet - year, month, mday = [int(x) for x in the_date.split("-")] + year, month, mday = (int(x) for x in the_date.split("-")) the_time = the_time.split(".")[0] - hours, minutes, seconds = [int(x) for x in the_time.split(":")] + hours, minutes, seconds = (int(x) for x in the_time.split(":")) now = time.struct_time( (year, month, mday, hours, minutes, seconds, week_day, year_day, is_dst) ) diff --git a/docs/conf.py b/docs/conf.py index 63d7702..241b83e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - # SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries # # SPDX-License-Identifier: MIT diff --git a/pyproject.toml b/pyproject.toml index 3fa0343..b54dd3e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,8 +45,8 @@ dynamic = ["dependencies", "optional-dependencies"] target-version = "py38" [tool.ruff.lint] -select = ["I", "PL"] -ignore = ["PLR2004"] +select = ["I", "PL", "UP"] +ignore = ["PLR2004", "UP028", "UP030", "UP031", "UP032"] [tool.ruff.format] line-ending = "lf"