From af6eac8cc9cf9e9181744ae61510f3df25587d0d Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 16 May 2022 01:12:19 +0200 Subject: [PATCH] Add isort --- requirements.txt | 1 + setup.cfg | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/requirements.txt b/requirements.txt index 5065b4f877..43d077104f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -36,6 +36,7 @@ flake8==3.8.3 # PEP checking gunicorn>=20.1.0 # Gunicorn web server importlib_metadata # Backport for importlib.metadata inventree # Install the latest version of the InvenTree API python library +isort==5.10.1 # DEV: python import sorting markdown==3.3.4 # Force particular version of markdown pep8-naming==0.11.1 # PEP naming convention extension pillow==9.0.1 # Image manipulation diff --git a/setup.cfg b/setup.cfg index b4b0af8836..a483481f5d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -20,3 +20,11 @@ max-complexity = 20 [coverage:run] source = ./InvenTree + +[isort] +src_paths=InvenTree +skip_glob =*/migrations/*.py +known_django=django +import_heading_firstparty=InvenTree imports +import_heading_thirdparty=Third-Party imports +sections=FUTURE, STDLIB, DJANGO, THIRDPARTY, FIRSTPARTY, LOCALFOLDER