fix pydocstyle

This commit is contained in:
Guilhem Saurel 2023-03-08 17:49:17 +01:00
parent 4683905f15
commit c04dec629b
2 changed files with 1 additions and 6 deletions

View File

@ -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

View File

@ -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