From e334b781fbd8dc853838465da7434790895d84d1 Mon Sep 17 00:00:00 2001 From: adbenitez Date: Thu, 9 Jun 2022 04:24:28 -0400 Subject: [PATCH] move isort configuration to pyproject.toml instead of passing it in command line usage in tox.ini, this allows isort usage with editors to pick the right configuration without manually tweaking it in the editors --- python/pyproject.toml | 3 +++ python/tox.ini | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/python/pyproject.toml b/python/pyproject.toml index d60db632d..3ec1bd411 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -9,3 +9,6 @@ git_describe_command = "git describe --dirty --tags --long --match py-*.*" [tool.black] line-length = 120 + +[tool.isort] +profile = "black" \ No newline at end of file diff --git a/python/tox.ini b/python/tox.ini index 49ea8eac9..803065a6e 100644 --- a/python/tox.ini +++ b/python/tox.ini @@ -42,7 +42,7 @@ deps = pygments restructuredtext_lint commands = - isort --check --profile black src/deltachat examples/ tests/ + isort --check src/deltachat examples/ tests/ black --check src/deltachat examples/ tests/ flake8 src/deltachat flake8 tests/ examples/