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