Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc27fa48

Browse files
author
Gauvain Pocentek
committed
chore: add a tox job to run black
Allow lines to be 88 chars long for flake8.
1 parent794d64c commitc27fa48

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

‎tox.ini

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tox]
22
minversion = 1.6
33
skipsdist = True
4-
envlist = py36,py35,py34,py27,pep8
4+
envlist = py36,py35,py34,py27,pep8,black
55

66
[testenv]
77
setenv =VIRTUAL_ENV={envdir}
@@ -18,11 +18,20 @@ commands =
1818
commands =
1919
flake8 {posargs} gitlab/
2020

21+
[testenv:black]
22+
basepython = python3
23+
deps = -r{toxinidir}/requirements.txt
24+
-r{toxinidir}/test-requirements.txt
25+
black
26+
commands =
27+
black {posargs} gitlab
28+
2129
[testenv:venv]
2230
commands = {posargs}
2331

2432
[flake8]
2533
exclude = .git,.venv,.tox,dist,doc,*egg,build,
34+
max-line-length = 88
2635
ignore = H501,H803
2736

2837
[testenv:docs]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp