mirror of
https://github.com/mkdocs/mkdocs.git
synced 2026-03-27 18:08:31 +07:00
Enforce 'isort' formatter
This commit is contained in:
3
.github/workflows/tox.yml
vendored
3
.github/workflows/tox.yml
vendored
@@ -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
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
coverage
|
||||
black
|
||||
isort
|
||||
flake8
|
||||
|
||||
@@ -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
|
||||
|
||||
4
tox.ini
4
tox.ini
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user