From: Mike Bayer Date: Sat, 15 Oct 2022 15:12:25 +0000 (-0400) Subject: disable isort in pyproject.toml X-Git-Tag: rel_2_0_0b2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8da50ce0f0474bc89cee15603931760cb6c55ce;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 --- diff --git a/pyproject.toml b/pyproject.toml index bba572d509..fe52ea7fc6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"