diff options
| author | Colin Wilk <colin.wilk@tum.de> | 2023-10-09 12:59:08 +0200 |
|---|---|---|
| committer | Colin Wilk <colin.wilk@tum.de> | 2023-10-09 12:59:08 +0200 |
| commit | 50e5179bd062cbd8f482c169432bb7e02f43152c (patch) | |
| tree | 8a1f89b8a1b9a79914a94aad184329c889b83d81 | |
| parent | f7a1dfc655971b279749232665bd468ffebd5c2e (diff) | |
| download | szuruboorupy-50e5179bd062cbd8f482c169432bb7e02f43152c.tar.gz szuruboorupy-50e5179bd062cbd8f482c169432bb7e02f43152c.zip | |
Signed-off-by: Colin Wilk <colin.wilk@tum.de>
| -rw-r--r-- | .pre-commit-config.yaml | 6 | ||||
| -rw-r--r-- | szuruboorupy/exceptions.py | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a6c922f..8d84555 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,6 +35,12 @@ repos: - id: black + - repo: https://github.com/pycqa/isort + rev: 5.12.0 + hooks: + - id: isort + + - repo: https://github.com/pycqa/pydocstyle rev: 6.3.0 hooks: diff --git a/szuruboorupy/exceptions.py b/szuruboorupy/exceptions.py index bde9c9a..4343f70 100644 --- a/szuruboorupy/exceptions.py +++ b/szuruboorupy/exceptions.py @@ -5,9 +5,10 @@ defined in this module as well as the Szurubooru API docs: https://github.com/rr-/szurubooru/blob/master/doc/API.md#error-handling """ -import requests as r import json +import requests as r + class SzurubooruException(Exception): """General Error returned from the Szurubooru REST API. |