Skip to content

Commit 2f8ae41

Browse files
committed
Add ruff upgrade
1 parent 00c1bcd commit 2f8ae41

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

docs/conf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
42
#
53
# SPDX-License-Identifier: MIT

examples/wifi/expanded/requests_wifi_api_fitbit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def time_calc(input_time):
284284
]
285285
print(f" | | Fitbit Date: {activities_timestamp}")
286286
if MIDNIGHT_DEBUG:
287-
ACTIVITIES_LATEST_HEART_TIME = str("00:05:00")
287+
ACTIVITIES_LATEST_HEART_TIME = "00:05:00"
288288
else:
289289
ACTIVITIES_LATEST_HEART_TIME = fitbit_json[
290290
"activities-heart-intraday"

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ dynamic = ["dependencies", "optional-dependencies"]
4242
target-version = "py38"
4343

4444
[tool.ruff.lint]
45-
select = ["I", "PL"]
46-
ignore = ["PLR2004"]
45+
select = ["I", "PL", "UP"]
46+
ignore = ["PLR2004", "UP028", "UP030", "UP031", "UP032"]
4747

4848
[tool.ruff.format]
4949
line-ending = "lf"

0 commit comments

Comments
 (0)