Skip to content

Commit

Permalink
ENH: add to example.py noqa: E402
Browse files Browse the repository at this point in the history
  • Loading branch information
dpizetta committed Mar 23, 2020
1 parent 33980c7 commit 9901970
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions example/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@
# Make the example runnable without the need to install and include ui
sys.path.insert(0, os.path.abspath(os.path.dirname(os.path.abspath(__file__)) + '/..'))
sys.path.insert(0, os.path.abspath(os.path.dirname(os.path.abspath(__file__)) + '/ui'))

# Must be in this place, after setting path, to not need to install
import qdarkstyle
import qdarkstyle # noqa: E402

# Set log for debug
logging.basicConfig(level=logging.DEBUG)
Expand Down Expand Up @@ -146,12 +147,12 @@ def main():
ui = ui_main()
ui.setupUi(window)

title = ("QDarkStyle Example - " +
"(QDarkStyle=v" + qdarkstyle.__version__ +
", QtPy=v" + QTPY_VERSION +
", " + API_NAME + "=v" + API_VERSION +
", Qt=v" + QT_VERSION +
", Python=v" + platform.python_version() + ")")
title = ("QDarkStyle Example - "
+ "(QDarkStyle=v" + qdarkstyle.__version__
+ ", QtPy=v" + QTPY_VERSION
+ ", " + API_NAME + "=v" + API_VERSION
+ ", Qt=v" + QT_VERSION
+ ", Python=v" + platform.python_version() + ")")

_logger.info(title)

Expand Down

0 comments on commit 9901970

Please # to comment.