Skip to content

Commit

Permalink
A questionable python code change
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed Aug 28, 2024
1 parent 72c61c8 commit f665968
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion logger/cli/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import requests
import pathlib

Check warning on line 2 in logger/cli/__main__.py

View check run for this annotation

Aspect Workflows / Lint

Ruff found an issue

[*] `pathlib` imported but unused

r = requests.get("http://localhost:8081")
r = requests.get("http://localhost:{".format(8081))

Check warning on line 4 in logger/cli/__main__.py

View check run for this annotation

Aspect Workflows / Lint

Ruff found an issue

`.format` call has invalid format string: Single '{' encountered in format string
print(r.json())

0 comments on commit f665968

Please sign in to comment.