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

Appearance settings

Commit d135e4e

Browse filesBrowse files
authored
Merge pull request python-gitlab#788 from python-gitlab/black-in-tox
Add a tox job to run black
2 parents 794d64c + c27fa48 commit d135e4e
Copy full SHA for d135e4e

File tree

Expand file treeCollapse file tree

1 file changed

+10
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+10
-1
lines changed
Open diff view settings
Collapse file

‎tox.ini‎

Copy file name to clipboardExpand all lines: tox.ini
+10-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.