From 4481cfeef8b2fd90a485f2f871e9689750b48220 Mon Sep 17 00:00:00 2001 From: Bert JW Regeer Date: Sun, 12 Jul 2020 16:52:33 -0700 Subject: Update flags/config to isort 5.x --- pyproject.toml | 4 +++- tox.ini | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6e28b2347..9bdd2274c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,11 +21,13 @@ exclude = ''' # This next section only exists for people that have their editors # automatically call isort, black already sorts entries on its own when run. [tool.isort] +profile = "black" multi_line_output = 3 +src_paths = ["src", "tests"] +skip_glob = ["docs/*"] include_trailing_comma = true force_grid_wrap = false combine_as_imports = true -use_parenthesis = true line_length = 79 force_sort_within_sections = true no_lines_before = "THIRDPARTY" diff --git a/tox.ini b/tox.ini index 91baa42db..99aeb67d2 100644 --- a/tox.ini +++ b/tox.ini @@ -23,7 +23,7 @@ commands = skip_install = true commands = flake8 src/pyramid tests setup.py - isort --check -rc src/pyramid tests setup.py + isort --check-only --df src/pyramid tests setup.py black --check --diff src/pyramid tests setup.py python setup.py check -r -s -m check-manifest @@ -63,7 +63,7 @@ depends = py38-cover [testenv:format] skip_install = true commands = - isort -rc src/pyramid tests setup.py + isort src/pyramid tests setup.py black src/pyramid tests setup.py deps = black -- cgit v1.2.3