Skip to content

Update current_weather.py #11696

Update current_weather.py

Update current_weather.py #11696

Triggered via pull request October 29, 2024 06:57
Status Failure
Total duration 12s
Artifacts

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Ruff (I001): web_programming/current_weather.py#L1
web_programming/current_weather.py:1:1: I001 Import block is un-sorted or un-formatted
Ruff (F401): web_programming/current_weather.py#L2
web_programming/current_weather.py:2:8: F401 `requests` imported but unused
Ruff (F401): web_programming/current_weather.py#L5
web_programming/current_weather.py:5:8: F401 `json` imported but unused
Ruff (W293): web_programming/current_weather.py#L31
web_programming/current_weather.py:31:1: W293 Blank line contains whitespace
Ruff (W293): web_programming/current_weather.py#L34
web_programming/current_weather.py:34:1: W293 Blank line contains whitespace
Ruff (DTZ005): web_programming/current_weather.py#L41
web_programming/current_weather.py:41:30: DTZ005 `datetime.datetime.now()` called without a `tz` argument
Ruff (E501): web_programming/current_weather.py#L50
web_programming/current_weather.py:50:89: E501 Line too long (96 > 88)
Ruff (E501): web_programming/current_weather.py#L53
web_programming/current_weather.py:53:89: E501 Line too long (89 > 88)
Ruff (E501): web_programming/current_weather.py#L54
web_programming/current_weather.py:54:89: E501 Line too long (92 > 88)
Ruff (B007): web_programming/current_weather.py#L58
web_programming/current_weather.py:58:13: B007 Loop control variable `i` not used within loop body