]> 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:13:48 +0000 (11:13 -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

pyproject.toml

index bba572d5090f84b1429b4c590257e3480ac1574b..fe52ea7fc6b3cc59857b85561e0766eb841e6174 100644 (file)
@@ -16,6 +16,13 @@ black-line-length = 79
 [tool.slotscheck]
 exclude-modules = '^sqlalchemy\.testing'
 
+# 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=['*']
+
 
 [tool.pytest.ini_options]
 addopts = "--tb native -v -r sfxX --maxfail=250 -p warnings -p logging --strict-markers"