Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Copyright (c) 2017 Shotgun Software Inc.
#
# CONFIDENTIAL AND PROPRIETARY
#
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit
# Source Code License included in this distribution package. See LICENSE.
# By accessing, using, copying or modifying this work you indicate your
# agreement to the Shotgun Pipeline Toolkit Source Code License. All rights
# not expressly granted therein are reserved by Shotgun Software Inc.

# Flake 8 PEP and lint configuration - https://gitlab.com/pycqa/flake8
#
# This defines the official lint and PEP8 rules for this repository
#
# You can run this locally by doing pep install flake8 and then
# >flake8 /path/to/core
#
# This is also used by the hound CI - see the .hound.yml config file.
#
#
[flake8]

# things we don't want to lint
exclude =
.tox,
.git,
.flake8,
.gitignore,
.travis.yml,
.cache,
.eggs,
*.rst,
*.yml,
*.pyc,
*.pyo,
*.egg-info,
__pycache__,
# Those are our third parties, do not lint them!
python/tank_vendor,
# Otherwise you'll have a lot of 'xxx' imported but unused
python/tank/__init__.py,
python/tank/*/__init__.py,
# Skip the auto-generated ui file.
python/tank/authentication/ui/login_dialog.py,
python/tank/authentication/ui/resources_rc.py,
python/tank/platform/qt/ui_busy_dialog.py,
python/tank/platform/qt/ui_item.py,
python/tank/platform/qt/ui_tank_dialog.py,
python/tank/authentication/sso_saml2/*,
tests/python

# toolkit exceptions
#
# E203 whitespace before ':' (this is not PEP8 compliant)
# E221 multiple spaces before operator
# E261 two whitespaces before end of line comment.
# E402 module level import not top of file
# E501 line too long (112 > 79 characters)
# W503 Line break occurred before a binary operator
# N802 Variables should be lower case. (clashes with Qt naming conventions)
# N806 Variables should be lower case. (clashes with Qt naming conventions)
# E999 SyntaxError: invalid syntax (hack for hound CI which runs python 3.x)

ignore = E203, E221, E261, E402, E501, W503, N802, N806, E999
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ pip-log.txt

# Max OS X Desktop Services Store files
.DS_Store

# IDEs and Editors
*.swo
*.swp
*.swm
*~
9 changes: 9 additions & 0 deletions engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,15 @@ def post_app_init(self):
else:
self.post_app_init_nuke()

# Instantiate FlowHost if current context is configured with Flow
if self.context.flow_project_id:
# NOTE: placing this import at the top of the module causes errors
# so it must be localized
from flowam.host import NukeHost

self.logger.info("Instantiating Flow host as NukeHost...")
self._flow_host = NukeHost(self.context)

def post_app_init_studio(self):
"""
The Nuke Studio specific portion of the engine's post-init process.
Expand Down
13 changes: 13 additions & 0 deletions python/flowam/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright (c) 2015 Shotgun Software Inc.
#
# CONFIDENTIAL AND PROPRIETARY
#
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit
# Source Code License included in this distribution package. See LICENSE.
# By accessing, using, copying or modifying this work you indicate your
# agreement to the Shotgun Pipeline Toolkit Source Code License. All rights
# not expressly granted therein are reserved by Shotgun Software Inc.

# flake8: noqa

from . import host
Loading