| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1508eb7 commit dda646e
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,3 +32,5 @@ jobs: | |||
| 32 | 32 | run: tox -e pep8 | |
| 33 | 33 | - name: Run mypy static typing checker (http://mypy-lang.org/) | |
| 34 | 34 | run: tox -e mypy | |
| 35 | + - name: Run isort import order checker (https://pycqa.github.io/isort/) | ||
| 36 | + run: tox -e isort -- --check | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | [tox] | |
| 2 | 2 | minversion = 1.6 | |
| 3 | 3 | skipsdist = True | |
| 4 | - envlist = py39,py38,py37,py36,pep8,black,twine-check,mypy | ||
| 4 | + envlist = py39,py38,py37,py36,pep8,black,twine-check,mypy,isort | ||
| 5 | 5 | ||
| 6 | 6 | [testenv] | |
| 7 | 7 | passenv = GITLAB_IMAGE GITLAB_TAG | |
@@ -31,6 +31,14 @@ deps = -r{toxinidir}/requirements.txt | |||
| 31 | 31 | commands = | |
| 32 | 32 | black {posargs} . | |
| 33 | 33 | ||
| 34 | + [testenv:isort] | ||
| 35 | + basepython = python3 | ||
| 36 | + deps = -r{toxinidir}/requirements.txt | ||
| 37 | + -r{toxinidir}/test-requirements.txt | ||
| 38 | + isort | ||
| 39 | + commands = | ||
| 40 | + isort --dont-order-by-type {posargs} {toxinidir} | ||
| 41 | + | ||
| 34 | 42 | [testenv:twine-check] | |
| 35 | 43 | basepython = python3 | |
| 36 | 44 | deps = -r{toxinidir}/requirements.txt | |
@@ -60,6 +68,11 @@ ignore = E203,E501,W503 | |||
| 60 | 68 | per-file-ignores = | |
| 61 | 69 | gitlab/v4/objects/__init__.py:F401,F403 | |
| 62 | 70 | ||
| 71 | + [isort] | ||
| 72 | + profile = black | ||
| 73 | + multi_line_output = 3 | ||
| 74 | + force_sort_within_sections = True | ||
| 75 | + | ||
| 63 | 76 | [testenv:docs] | |
| 64 | 77 | deps = -r{toxinidir}/rtd-requirements.txt | |
| 65 | 78 | commands = python setup.py build_sphinx | |
| Back | FazBrowse Home | New Git URL |
0 commit comments