ci: Enable black

This commit is contained in:
Serg Tereshchenko 2021-09-18 10:50:23 +03:00
parent e3c521392f
commit 6cbf0ce725
3 changed files with 9 additions and 4 deletions

View file

@ -21,10 +21,11 @@ jobs:
- name: Install flake8
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Lint with flake8
pip install flake8 black
- name: Lint with flake8 and black
run: |
flake8 modeltranslation
black --check modeltranslation *.py
Test:
runs-on: ubuntu-latest
strategy:

View file

@ -16,3 +16,7 @@ six = "^1.15.0"
[tool.poetry.dev-dependencies]
pdbpp = "^0.10.2"
flake8 = "^3.7.9"
[tool.black]
line-length = 100
skip-string-normalization = true

View file

@ -1,7 +1,7 @@
[flake8]
max-line-length = 100
ignore = E722, E241, W504
exclude = .tox,docs/modeltranslation/conf.py
ignore = E722, E241, E203, E266, E501, W503
exclude = .tox
[tox]
distribute = False