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

Commitd135e4e

Browse files
authored
Merge pull request#788 from python-gitlab/black-in-tox
Add a tox job to run black
2 parents794d64c +c27fa48 commitd135e4e

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