From 71a08382d6578226632dce3bfef596e306ee09be Mon Sep 17 00:00:00 2001 From: Ashley Sommer Date: Tue, 7 Jul 2020 15:43:33 +1000 Subject: [PATCH] Adjust isort options and invocation to work on isort 5.0.0 (#1890) isort 5.0.0 removed command line option `recursive` and removed config option `not_skip`. --- setup.cfg | 2 -- tox.ini | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/setup.cfg b/setup.cfg index ac75014e..42f63e49 100644 --- a/setup.cfg +++ b/setup.cfg @@ -11,11 +11,9 @@ line_length = 79 lines_after_imports = 2 lines_between_types = 1 multi_line_output = 3 -not_skip = __init__.py [version] current_version = 19.12.0 files = sanic/__version__.py current_version_pattern = __version__ = "{current_version}" new_version_pattern = __version__ = "{new_version}" - diff --git a/tox.ini b/tox.ini index dc272c6d..09cbc0dd 100644 --- a/tox.ini +++ b/tox.ini @@ -30,13 +30,13 @@ commands = deps = flake8 black - isort + isort>=5.0.0 bandit commands = flake8 sanic black --config ./.black.toml --check --verbose sanic/ - isort --check-only --recursive sanic + isort --check-only sanic [testenv:type-checking] deps =