From: Mike Bayer Date: Sat, 15 Oct 2022 15:12:25 +0000 (-0400) Subject: disable isort in pyproject.toml X-Git-Tag: rel_1_4_42~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a29f86e6591628cd0de189bcf624d88995fd486;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git disable isort in pyproject.toml disable isort, for IDEs that just default isort to be turned on, e.g. vscode. we use flake8-import-order for import sorting, using zimports to actually reformat code. isort is nicer in many ways but doesn't have our "import *" fixer and also is not 100% compatible with flake8-import-order. Change-Id: I8e53d475cdc1d6178e2c9276d2b21d47be207ede (cherry picked from commit e8da50ce0f0474bc89cee15603931760cb6c55ce) --- diff --git a/pyproject.toml b/pyproject.toml index f82dbd468b..da6c4cba06 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,4 +6,11 @@ target-version = ['py27', 'py36'] black-line-length = 79 keep-unused-type-checking = true +# disable isort, for IDEs that just default isort to be turned on, e.g. vscode. +# we use flake8-import-order for import sorting, using zimports to actually +# reformat code. isort is nicer in many ways but doesn't have our +# "import *" fixer and also is not 100% compatible with flake8-import-order. +[tool.isort] +skip_glob=['*'] +