mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-05-05 03:54:43 +00:00
ci: Enable black
This commit is contained in:
parent
e3c521392f
commit
6cbf0ce725
3 changed files with 9 additions and 4 deletions
5
.github/workflows/github-actions.yml
vendored
5
.github/workflows/github-actions.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
4
tox.ini
4
tox.ini
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue