-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaned up sources with pre-commit hooks. (#69)
- Loading branch information
1 parent
2642261
commit feae35b
Showing
110 changed files
with
334 additions
and
330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Copyright (c) 2019 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. | ||
|
||
# Styles the code properly | ||
# Exclude the UI files, as they are auto-generated. | ||
exclude: "ui\/.*py$" | ||
# List of super useful formatters. | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.2.3 | ||
hooks: | ||
# Ensures the code is syntaxically correct | ||
- id: check-ast | ||
language_version: python3 | ||
# Ensures a yaml file is properly formatted | ||
- id: check-yaml | ||
# Ensures a file name will resolve on all platform | ||
- id: check-case-conflict | ||
# Checks files with the execute bit set have shebangs | ||
- id: check-executables-have-shebangs | ||
# Ensure there's no incomplete merges | ||
- id: check-merge-conflict | ||
# Adds an empty line if missing at the end of a file. | ||
- id: end-of-file-fixer | ||
# Makes sure requirements.txt is properly formatted | ||
- id: requirements-txt-fixer | ||
# Removes trailing whitespaces. | ||
- id: trailing-whitespace | ||
# Leave black at the bottom so all touchups are done before it is run. | ||
- repo: https://github.com/ambv/black | ||
rev: stable | ||
hooks: | ||
- id: black | ||
language_version: python3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ | |
""" | ||
|
||
|
||
def create(sg, project_id, log, **kwargs): | ||
""" | ||
Insert post-project code here | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
This location is for core hook override files. | ||
|
||
The Shotgun Pipeline Toolkit comes with a series of Core Hooks, essentially snippets of python | ||
The Shotgun Pipeline Toolkit comes with a series of Core Hooks, essentially snippets of python | ||
that contain key operations such as copying a file, creating directories etc. | ||
|
||
These hooks are part of the platform distribution and are therefore bundled with the code itself. | ||
|
||
If you want to provide your own hook implementations, for example control file system permissions | ||
as files are being copied, you can override the core hooks by putting a file with the same | ||
name as the core hook in this location. Sgtk will basically look in this folder first as it is | ||
requesting a core hook - if it doesn't find the core hook here, it will look in its internal | ||
platform location. | ||
name as the core hook in this location. Sgtk will basically look in this folder first as it is | ||
requesting a core hook - if it doesn't find the core hook here, it will look in its internal | ||
platform location. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,4 +67,3 @@ primary: | |
# description: "High performance storage for fast/frequent texture access" | ||
# shotgun_storage_id: 2 | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
# Copyright (c) 2015 Shotgun Software Inc. | ||
# | ||
# | ||
# CONFIDENTIAL AND PROPRIETARY | ||
# | ||
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit | ||
# | ||
# 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 | ||
# 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. | ||
|
||
# the type of dynamic content | ||
type: "shotgun_step" | ||
|
||
# the shotgun field to use for the folder name | ||
name: "short_name" | ||
|
11 changes: 5 additions & 6 deletions
11
core/schema/project/assets/asset_type/asset/step/publish/3dsmax.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
# Copyright (c) 2015 Shotgun Software Inc. | ||
# | ||
# | ||
# CONFIDENTIAL AND PROPRIETARY | ||
# | ||
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit | ||
# | ||
# 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 | ||
# 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. | ||
|
||
# the type of dynamic content | ||
type: "static" | ||
|
||
# defer creation and only create this folder when 3dsmax starts | ||
defer_creation: ["tk-3dsmax", "tk-3dsmaxplus"] | ||
|
2 changes: 1 addition & 1 deletion
2
core/schema/project/assets/asset_type/asset/step/publish/3dsmax/placeholder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# This file is a placeholder to ensure that the parent folder is preserved and not deleted by git. | ||
# Any file named 'placeholder' will not be copied across when folders are created. | ||
# Note: You can which files should be ignored when folders are created in the ignore_files file, | ||
# located in the schema folder. | ||
# located in the schema folder. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,3 @@ type: "static" | |
|
||
# defer creation and only create this folder when Nuke starts | ||
defer_creation: "tk-alias" | ||
|
2 changes: 1 addition & 1 deletion
2
core/schema/project/assets/asset_type/asset/step/publish/alias/placeholder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# This file is a placeholder to ensure that the parent folder is preserved and not deleted by git. | ||
# Any file named 'placeholder' will not be copied across when folders are created. | ||
# Note: You can which files should be ignored when folders are created in the ignore_files file, | ||
# located in the schema folder. | ||
# located in the schema folder. |
2 changes: 1 addition & 1 deletion
2
core/schema/project/assets/asset_type/asset/step/publish/caches/placeholder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# This file is a placeholder to ensure that the parent folder is preserved and not deleted by git. | ||
# Any file named 'placeholder' will not be copied across when folders are created. | ||
# Note: You can which files should be ignored when folders are created in the ignore_files file, | ||
# located in the schema folder. | ||
# located in the schema folder. |
2 changes: 1 addition & 1 deletion
2
core/schema/project/assets/asset_type/asset/step/publish/elements/placeholder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# This file is a placeholder to ensure that the parent folder is preserved and not deleted by git. | ||
# Any file named 'placeholder' will not be copied across when folders are created. | ||
# Note: You can which files should be ignored when folders are created in the ignore_files file, | ||
# located in the schema folder. | ||
# located in the schema folder. |
11 changes: 5 additions & 6 deletions
11
core/schema/project/assets/asset_type/asset/step/publish/houdini.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
# Copyright (c) 2015 Shotgun Software Inc. | ||
# | ||
# | ||
# CONFIDENTIAL AND PROPRIETARY | ||
# | ||
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit | ||
# | ||
# 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 | ||
# 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. | ||
|
||
# the type of dynamic content | ||
type: "static" | ||
|
||
# defer creation and only create this folder when Houdini starts | ||
defer_creation: "tk-houdini" | ||
|
2 changes: 1 addition & 1 deletion
2
core/schema/project/assets/asset_type/asset/step/publish/houdini/placeholder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# This file is a placeholder to ensure that the parent folder is preserved and not deleted by git. | ||
# Any file named 'placeholder' will not be copied across when folders are created. | ||
# Note: You can which files should be ignored when folders are created in the ignore_files file, | ||
# located in the schema folder. | ||
# located in the schema folder. |
2 changes: 1 addition & 1 deletion
2
core/schema/project/assets/asset_type/asset/step/publish/mari/placeholder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# This file is a placeholder to ensure that the parent folder is preserved and not deleted by git. | ||
# Any file named 'placeholder' will not be copied across when folders are created. | ||
# Note: You can which files should be ignored when folders are created in the ignore_files file, | ||
# located in the schema folder. | ||
# located in the schema folder. |
11 changes: 5 additions & 6 deletions
11
core/schema/project/assets/asset_type/asset/step/publish/maya.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
# Copyright (c) 2015 Shotgun Software Inc. | ||
# | ||
# | ||
# CONFIDENTIAL AND PROPRIETARY | ||
# | ||
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit | ||
# | ||
# 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 | ||
# 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. | ||
|
||
# the type of dynamic content | ||
type: "static" | ||
|
||
# defer creation and only create this folder when Maya starts | ||
defer_creation: "tk-maya" | ||
|
2 changes: 1 addition & 1 deletion
2
core/schema/project/assets/asset_type/asset/step/publish/maya/placeholder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# This file is a placeholder to ensure that the parent folder is preserved and not deleted by git. | ||
# Any file named 'placeholder' will not be copied across when folders are created. | ||
# Note: You can which files should be ignored when folders are created in the ignore_files file, | ||
# located in the schema folder. | ||
# located in the schema folder. |
11 changes: 5 additions & 6 deletions
11
core/schema/project/assets/asset_type/asset/step/publish/mobu.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
# Copyright (c) 2015 Shotgun Software Inc. | ||
# | ||
# | ||
# CONFIDENTIAL AND PROPRIETARY | ||
# | ||
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit | ||
# | ||
# 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 | ||
# 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. | ||
|
||
# the type of dynamic content | ||
type: "static" | ||
|
||
# defer creation and only create this folder when Motion Builder starts | ||
defer_creation: "tk-motionbuilder" | ||
|
2 changes: 1 addition & 1 deletion
2
core/schema/project/assets/asset_type/asset/step/publish/mobu/placeholder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# This file is a placeholder to ensure that the parent folder is preserved and not deleted by git. | ||
# Any file named 'placeholder' will not be copied across when folders are created. | ||
# Note: You can which files should be ignored when folders are created in the ignore_files file, | ||
# located in the schema folder. | ||
# located in the schema folder. |
11 changes: 5 additions & 6 deletions
11
core/schema/project/assets/asset_type/asset/step/publish/nuke.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
# Copyright (c) 2015 Shotgun Software Inc. | ||
# | ||
# | ||
# CONFIDENTIAL AND PROPRIETARY | ||
# | ||
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit | ||
# | ||
# 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 | ||
# 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. | ||
|
||
# the type of dynamic content | ||
type: "static" | ||
|
||
# defer creation and only create this folder when Nuke starts | ||
defer_creation: "tk-nuke" | ||
|
2 changes: 1 addition & 1 deletion
2
core/schema/project/assets/asset_type/asset/step/publish/nuke/placeholder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# This file is a placeholder to ensure that the parent folder is preserved and not deleted by git. | ||
# Any file named 'placeholder' will not be copied across when folders are created. | ||
# Note: You can which files should be ignored when folders are created in the ignore_files file, | ||
# located in the schema folder. | ||
# located in the schema folder. |
11 changes: 5 additions & 6 deletions
11
core/schema/project/assets/asset_type/asset/step/publish/photoshop.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
# Copyright (c) 2015 Shotgun Software Inc. | ||
# | ||
# | ||
# CONFIDENTIAL AND PROPRIETARY | ||
# | ||
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit | ||
# | ||
# 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 | ||
# 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. | ||
|
||
# the type of dynamic content | ||
type: "static" | ||
|
||
# defer creation and only create this folder when Photoshop starts | ||
defer_creation: "tk-photoshopcc" | ||
|
2 changes: 1 addition & 1 deletion
2
core/schema/project/assets/asset_type/asset/step/publish/photoshop/placeholder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# This file is a placeholder to ensure that the parent folder is preserved and not deleted by git. | ||
# Any file named 'placeholder' will not be copied across when folders are created. | ||
# Note: You can which files should be ignored when folders are created in the ignore_files file, | ||
# located in the schema folder. | ||
# located in the schema folder. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,3 @@ type: "static" | |
|
||
# defer creation and only create this folder when Nuke starts | ||
defer_creation: "tk-vred" | ||
|
2 changes: 1 addition & 1 deletion
2
core/schema/project/assets/asset_type/asset/step/publish/vred/placeholder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# This file is a placeholder to ensure that the parent folder is preserved and not deleted by git. | ||
# Any file named 'placeholder' will not be copied across when folders are created. | ||
# Note: You can which files should be ignored when folders are created in the ignore_files file, | ||
# located in the schema folder. | ||
# located in the schema folder. |
2 changes: 1 addition & 1 deletion
2
core/schema/project/assets/asset_type/asset/step/reference/artwork/placeholder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# This file is a placeholder to ensure that the parent folder is preserved and not deleted by git. | ||
# Any file named 'placeholder' will not be copied across when folders are created. | ||
# Note: You can which files should be ignored when folders are created in the ignore_files file, | ||
# located in the schema folder. | ||
# located in the schema folder. |
Oops, something went wrong.