From e8da50ce0f0474bc89cee15603931760cb6c55ce Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 15 Oct 2022 11:12:25 -0400 Subject: [PATCH] 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 --- pyproject.toml | 7 +++++++ 1 file changed, 7 insertions(+) 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" -- 2.47.2