Enforce 'isort' formatter

This commit is contained in:
Oleh Prypin
2022-08-08 21:41:52 +02:00
parent d6375e5413
commit a66a7ba474
4 changed files with 12 additions and 0 deletions

View File

@@ -66,6 +66,9 @@ jobs:
- name: Install Node dependencies
run: |
npm install -g markdownlint-cli jshint csslint
- name: Check with isort
if: always()
run: python -m tox -e isort && git diff --exit-code
- name: Check with black
if: always()
run: python -m tox -e black && git diff --exit-code

View File

@@ -1,3 +1,4 @@
coverage
black
isort
flake8

View File

@@ -5,6 +5,10 @@ license_file = LICENSE
max-line-length = 119
extend-ignore = E203
[isort]
profile = black
line_length = 100
[compile_catalog]
statistics = True
domain = messages

View File

@@ -20,6 +20,10 @@ commands=
deps=-rrequirements/test.txt
commands={envbindir}/black -l100 -tpy36 --skip-string-normalization mkdocs
[testenv:isort]
deps=-rrequirements/test.txt
commands={envbindir}/isort mkdocs
[testenv:flake8]
deps=-rrequirements/test.txt
commands={envbindir}/flake8 mkdocs