summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Wilk <colin.wilk@tum.de>2023-10-09 12:59:08 +0200
committerColin Wilk <colin.wilk@tum.de>2023-10-09 12:59:08 +0200
commit50e5179bd062cbd8f482c169432bb7e02f43152c (patch)
tree8a1f89b8a1b9a79914a94aad184329c889b83d81
parentf7a1dfc655971b279749232665bd468ffebd5c2e (diff)
downloadszuruboorupy-50e5179bd062cbd8f482c169432bb7e02f43152c.tar.gz
szuruboorupy-50e5179bd062cbd8f482c169432bb7e02f43152c.zip
Add pre-commit hook for isort and apply suggestionsHEADmaster
Signed-off-by: Colin Wilk <colin.wilk@tum.de>
-rw-r--r--.pre-commit-config.yaml6
-rw-r--r--szuruboorupy/exceptions.py3
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.