mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-23 08:38:16 +00:00
[Tests] Fix for isort config package handling
* Force gtk modules to be third_party for tox/travis testing.
This commit is contained in:
parent
e26a3dc0e7
commit
2f4cb0156c
@ -15,10 +15,10 @@ includes = glib, gio, cairo, pango, pangocairo, atk, gobject, gtk.keysyms,
|
|||||||
frameworks = CoreFoundation, Foundation, AppKit
|
frameworks = CoreFoundation, Foundation, AppKit
|
||||||
|
|
||||||
[isort]
|
[isort]
|
||||||
known_standard_library = unicodedata
|
known_standard_library = future_builtins
|
||||||
known_third_party = pygtk, gtk, gobject, gtk.gdk, pango, cairo, pangocairo, twisted,
|
# Ignore Windows specific modules
|
||||||
pytest, OpenSSL, pkg_resources, chardet, bbfreeze, win32verstamp, mock
|
known_third_party = bbfreeze, win32verstamp
|
||||||
known_first_party = msgfmt
|
known_first_party = msgfmt, deluge
|
||||||
order_by_type = true
|
order_by_type = true
|
||||||
line_length = 120
|
line_length = 120
|
||||||
not_skip = __init__.py
|
not_skip = __init__.py
|
||||||
|
4
tox.ini
4
tox.ini
@ -96,7 +96,9 @@ whitelist_externals =
|
|||||||
commands =
|
commands =
|
||||||
isort --version
|
isort --version
|
||||||
python -c "import subprocess, sys; output = subprocess.check_output(\
|
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))"
|
print output; sys.exit(bool(output))"
|
||||||
|
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user