Skip to content

Commit

Permalink
[Tests] Fix for isort config package handling
Browse files Browse the repository at this point in the history
 * Force gtk modules to be third_party for tox/travis testing.
  • Loading branch information
bendikro authored and cas-- committed Nov 1, 2016
1 parent e26a3dc commit 2f4cb01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ includes = glib, gio, cairo, pango, pangocairo, atk, gobject, gtk.keysyms,
frameworks = CoreFoundation, Foundation, AppKit

[isort]
known_standard_library = unicodedata
known_third_party = pygtk, gtk, gobject, gtk.gdk, pango, cairo, pangocairo, twisted,
pytest, OpenSSL, pkg_resources, chardet, bbfreeze, win32verstamp, mock
known_first_party = msgfmt
known_standard_library = future_builtins
# Ignore Windows specific modules
known_third_party = bbfreeze, win32verstamp
known_first_party = msgfmt, deluge
order_by_type = true
line_length = 120
not_skip = __init__.py
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ whitelist_externals =
commands =
isort --version
python -c "import subprocess, sys; output = subprocess.check_output(\
'isort -q --diff --recursive deluge docs packaging *.py', shell=True);\
'isort -q --diff --recursive deluge docs packaging *.py\
-o pygtk -o gtk -o gobject -o gtk.gdk -o pango -o cairo -o pangocairo\
', shell=True);\
print output; sys.exit(bool(output))"

[testenv:flake8]
Expand Down

0 comments on commit 2f4cb01

Please sign in to comment.