diff options
| -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. |