Add isort

This commit is contained in:
Matthias 2022-05-16 01:12:19 +02:00
parent 432fd9b8e6
commit af6eac8cc9
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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