From 287604efd21891c1233ecb84b4ea0ce7a923ac9f Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 28 Sep 2020 17:35:04 +0200 Subject: [PATCH] Add isort to project dev dependencies --- .github/workflows/ci.yml | 8 ++++++++ requirements-dev.txt | 1 + setup.cfg | 4 ++++ 3 files changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4ef3ba7e..19c5479a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -94,6 +94,10 @@ jobs: run: | flake8 + - name: Sort imports (isort) + run: | + isort --check . + - name: Mypy run: | mypy freqtrade scripts @@ -156,6 +160,10 @@ jobs: run: | flake8 + - name: Sort imports (isort) + run: | + isort --check . + - name: Mypy run: | mypy freqtrade scripts diff --git a/requirements-dev.txt b/requirements-dev.txt index b71f1abfd..c16e387ef 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -13,6 +13,7 @@ pytest-asyncio==0.14.0 pytest-cov==2.10.1 pytest-mock==3.3.1 pytest-random-order==1.0.4 +isort==5.5.3 # Convert jupyter notebooks to markdown documents nbconvert==6.0.6 diff --git a/setup.cfg b/setup.cfg index 34f25482b..57a0c42e7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,6 +8,10 @@ exclude = .eggs, user_data, +[isort] +line_length=100 +multi_line_output=0 + [mypy] ignore_missing_imports = True