From 50e5179bd062cbd8f482c169432bb7e02f43152c Mon Sep 17 00:00:00 2001 From: Colin Wilk Date: Mon, 9 Oct 2023 12:59:08 +0200 Subject: Add pre-commit hook for isort and apply suggestions Signed-off-by: Colin Wilk --- .pre-commit-config.yaml | 6 ++++++ szuruboorupy/exceptions.py | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) 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. -- cgit v1.2.3