]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
disable isort in pyproject.toml
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 15 Oct 2022 15:12:25 +0000 (11:12 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 15 Oct 2022 15:14:01 +0000 (11:14 -0400)
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)

pyproject.toml

index f82dbd468b328ed0556c4ba17ba6692ef2839a3f..da6c4cba0696341cc8178aa27b24160402e47eb3 100644 (file)
@@ -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=['*']
+