mirror of
https://github.com/bsedin/matrix-webhook.git
synced 2026-01-16 08:05:57 +00:00
fix pydocstyle
This commit is contained in:
parent
4683905f15
commit
c04dec629b
@ -38,8 +38,5 @@ matrix-webhook = "matrix_webhook.__main__:main"
|
||||
[tool.poetry.urls]
|
||||
"changelog" = "https://github.com/nim65s/matrix-webhook/blob/master/CHANGELOG.md"
|
||||
|
||||
[tool.pydocstyle]
|
||||
add-ignore = ["D200", "D203", "D204", "D212"]
|
||||
|
||||
[tool.tomlsort]
|
||||
all = true
|
||||
|
||||
@ -51,9 +51,7 @@ def wait_available(url: str, key: str, timeout: int = 10) -> bool:
|
||||
"""Wait until a service answer correctly or timeout."""
|
||||
|
||||
def check_json(url: str, key: str) -> bool:
|
||||
"""
|
||||
Ensure a service at a given url answers with valid json including a certain key.
|
||||
"""
|
||||
"""Ensure a service answers with valid json including a certain key."""
|
||||
try:
|
||||
data = httpx.get(url).json()
|
||||
return key in data
|
||||
|
||||
Loading…
Reference in New Issue
Block a user