-
Notifications
You must be signed in to change notification settings - Fork 128
Release/3.16.9 quad 1.8.2 #6229
Release/3.16.9 quad 1.8.2 #6229
Conversation
…and add it to the condition which start the template build workfile (quadproduction/issues#123)
…irectly + enhance browsing node recursive function to handle more cases
…nd after the set_context_settings (quadproduction/issues#123)
…de-handle-settings' into release/3.16.9-quad-1.1.0
…ild-template-with-workfile' into release/3.16.9-quad-1.1.0
…h is created when a user script in installed)
…ly keep lib/site-packages)
…hen-review-is-unchecked' into release/3.16.9-quad-1.1.0
Release/3.16.9 quad 1.1.0
…ne addon with temporary file as target
…er compatibility when replace paths parts
new_update_data["thumbnailId"] = data.pop("thumbnail_id") | ||
|
||
if "tasks" in data: | ||
tasks = data.pop("tasks") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
local variable 'tasks' is assigned to but never used
|
||
def _get_default_template_name(templates): | ||
default_template = None | ||
for name, template in templates.items(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Loop control variable 'template' not used within the loop body. If this is intended, start the name with an underscore.
|
||
|
||
|
||
def get_linked_representation_id( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
too many blank lines (3)
if body is not None: | ||
try: | ||
json.dumps(body) | ||
except: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not use bare except:
, it also catches unexpected events like memory errors, interrupts, system exit, and so on. Prefer except Exception:
. If you're sure what you're doing, be explicit and write except BaseException:
.
do not use bare 'except'
json.dumps(new_update_data, default=entity_data_json_default) | ||
) | ||
|
||
except: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not use bare except:
, it also catches unexpected events like memory errors, interrupts, system exit, and so on. Prefer except Exception:
. If you're sure what you're doing, be explicit and write except BaseException:
.
do not use bare 'except'
json.dumps(new_data, default=entity_data_json_default) | ||
) | ||
|
||
except: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not use bare except:
, it also catches unexpected events like memory errors, interrupts, system exit, and so on. Prefer except Exception:
. If you're sure what you're doing, be explicit and write except BaseException:
.
do not use bare 'except'
if not _app: | ||
print("Starting new QApplication..") | ||
_app = QtWidgets.QApplication([]) | ||
_app = get_openpype_qt_app() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
local variable '_app' is assigned to but never used
import_options['ImportAsType'] = 'ImportAsType.COMP' | ||
comp = stub.import_file_with_dialog(path, stub.LOADED_ICON + comp_name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (83 > 79 characters)
bpy.types.WindowManager.scene_filepath = bpy.props.StringProperty('') | ||
bpy.types.WindowManager.render_bool_properties = bpy.props.CollectionProperty(type=RenderBoolProperty) | ||
bpy.types.WindowManager.render_list_properties = bpy.props.CollectionProperty(type=RenderListProperty) | ||
bpy.types.WindowManager.render_layers_to_use = bpy.props.CollectionProperty(type=RenderLayerProperty) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (105 > 79 characters)
|
||
bpy.types.WindowManager.scene_filepath = bpy.props.StringProperty('') | ||
bpy.types.WindowManager.render_bool_properties = bpy.props.CollectionProperty(type=RenderBoolProperty) | ||
bpy.types.WindowManager.render_list_properties = bpy.props.CollectionProperty(type=RenderListProperty) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (106 > 79 characters)
bpy.utils.register_class(RenderLayerProperty) | ||
|
||
bpy.types.WindowManager.scene_filepath = bpy.props.StringProperty('') | ||
bpy.types.WindowManager.render_bool_properties = bpy.props.CollectionProperty(type=RenderBoolProperty) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (106 > 79 characters)
|
||
|
||
def set_render_nodes_output_path(): | ||
version = paths.get_next_version_folder(bpy.context.scene.render_layer_path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (80 > 79 characters)
|
||
def set_global_output_path(): | ||
bpy.context.scene.render.filepath = bpy.context.scene.output_path | ||
log.info(f"Global output path has been set to '{bpy.context.scene.output_path}'") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (85 > 79 characters)
|
||
setattr(modifier, modifier_attribute, _replace_paths_part(path_to_replace)) | ||
new_path = getattr(modifier, modifier_attribute, None) | ||
log.info(f"Cache file path has been updated from {path_to_replace} to {new_path}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (94 > 79 characters)
if not path_to_replace: | ||
continue | ||
|
||
setattr(modifier, modifier_attribute, _replace_paths_part(path_to_replace)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (87 > 79 characters)
for cache_file in bpy.data.cache_files: | ||
old_path = cache_file.filepath | ||
cache_file.filepath = _replace_paths_part(cache_file.filepath) | ||
log.info(f"Cache file path has updated from {old_path} to {cache_file.filepath}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (89 > 79 characters)
if not _app: | ||
print("Starting new QApplication..") | ||
_app = QtWidgets.QApplication([]) | ||
_app = get_openpype_qt_app() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
local variable '_app' is assigned to but never used
import_options['ImportAsType'] = 'ImportAsType.COMP' | ||
comp = stub.import_file_with_dialog(path, stub.LOADED_ICON + comp_name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (83 > 79 characters)
bpy.types.WindowManager.scene_filepath = bpy.props.StringProperty('') | ||
bpy.types.WindowManager.render_bool_properties = bpy.props.CollectionProperty(type=RenderBoolProperty) | ||
bpy.types.WindowManager.render_list_properties = bpy.props.CollectionProperty(type=RenderListProperty) | ||
bpy.types.WindowManager.render_layers_to_use = bpy.props.CollectionProperty(type=RenderLayerProperty) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (105 > 79 characters)
|
||
bpy.types.WindowManager.scene_filepath = bpy.props.StringProperty('') | ||
bpy.types.WindowManager.render_bool_properties = bpy.props.CollectionProperty(type=RenderBoolProperty) | ||
bpy.types.WindowManager.render_list_properties = bpy.props.CollectionProperty(type=RenderListProperty) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (106 > 79 characters)
bpy.utils.register_class(RenderLayerProperty) | ||
|
||
bpy.types.WindowManager.scene_filepath = bpy.props.StringProperty('') | ||
bpy.types.WindowManager.render_bool_properties = bpy.props.CollectionProperty(type=RenderBoolProperty) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (106 > 79 characters)
|
||
|
||
def set_render_nodes_output_path(): | ||
version = paths.get_next_version_folder(bpy.context.scene.render_layer_path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (80 > 79 characters)
|
||
def set_global_output_path(): | ||
bpy.context.scene.render.filepath = bpy.context.scene.output_path | ||
log.info(f"Global output path has been set to '{bpy.context.scene.output_path}'") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (85 > 79 characters)
|
||
setattr(modifier, modifier_attribute, _replace_paths_part(path_to_replace)) | ||
new_path = getattr(modifier, modifier_attribute, None) | ||
log.info(f"Cache file path has been updated from {path_to_replace} to {new_path}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (94 > 79 characters)
if not path_to_replace: | ||
continue | ||
|
||
setattr(modifier, modifier_attribute, _replace_paths_part(path_to_replace)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (87 > 79 characters)
for cache_file in bpy.data.cache_files: | ||
old_path = cache_file.filepath | ||
cache_file.filepath = _replace_paths_part(cache_file.filepath) | ||
log.info(f"Cache file path has updated from {old_path} to {cache_file.filepath}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (89 > 79 characters)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some files could not be reviewed due to errors:
Traceback (most recent call last):
Traceback (most recent call last): File "/usr/local/bin/flake8", line 8, in sys.exit(main()) File "/usr/local/lib/python3.8/dist-packages/flake8/main/cli.py", line 18, in main app.run(argv) File "/usr/local/lib/python3.8/dist-packages/flake8/main/application.py", line 393, in run self._run(argv) File "/usr/local/lib/python3.8/dist-packages/flake8/main/application.py", line 381, in _run self.run_checks() File "/usr/local/lib/python3.8/dist-packages/flake8/main/application.py", line 300, in run_checks self.file_checker_manager.run() File "/usr/local/lib/python3.8/dist-packages/flake8/checker.py", line 331, in run self.run_serial() File "/usr/local/lib/python3.8/dist-packages/flake8/checker.py", line 315, in run_serial checker.run_checks() File "/usr/local/lib/python3.8/dist-packages/flake8/checker.py", line 598, in run_checks self.run_ast_checks() File "/usr/local/lib/python3.8/dist-packages/flake8/checker.py", line 502, in run_ast_checks for (line_number, offset, text, check) in runner: File "/usr/local/lib/python3.8/dist-packages/flake8_django/checker.py", line 56, in run parser.visit(self.tree) File "/usr/lib/python3.8/ast.py", line 371, in visit return visitor(node) File "/usr/lib/python3.8/ast.py", line 379, in generic_visit self.visit(item) File "/usr/local/lib/python3.8/dist-packages/flake8_django/checker.py", line 39, in visit_ClassDef self.capture_issues_visitor('ClassDef', node) File "/usr/local/lib/python3.8/dist-packages/flake8_django/checker.py", line 33, in capture_issues_visitor self.generic_visit(node) File "/usr/lib/python3.8/ast.py", line 381, in generic_visit self.visit(value) File "/usr/local/lib/python3.8/dist-packages/flake8_django/checker.py", line 36, in visit_Call self.capture_issues_visitor('Call', node) File "/usr/local/lib/python3.8/dist-packages/flake8_django/checker.py", line 30, in capture_issues_visitor issues = checker.run(node) File "/usr/local/lib/python3.8/dist-packages/flake8_django/checkers/render.py", line 22, in run if isinstance(arg, ast.Call) and arg.func.id == 'locals': AttributeError: 'Attribute' object has no attribute 'id'
}, | ||
"create": { | ||
"CreateSaver": { | ||
"temp_rendering_path_template": "{workdir}/renders/fusion/{product[name]}/{product[name]}.{frame}.{ext}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (117 > 79 characters)
title="Plugin Limits", | ||
) | ||
|
||
@validator("limits_plugin", "env_allowed_keys", "env_search_replace_values") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (80 > 79 characters)
"review" | ||
], | ||
"reel_name": "OP_LoadedReel", | ||
"clip_name_template": "{batch}_{folder[name]}_{product[name]}<_{output}>", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (82 > 79 characters)
class CollectTimelineInstancesModel(BaseSettingsModel): | ||
_isGroup = True | ||
|
||
xml_preset_attrs_from_comments: list[XMLPresetAttrsFromCommentsModel] = Field( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (82 > 79 characters)
from pymxs import runtime as rt | ||
except ImportError: | ||
# Ignoring, we don't want misleading error logs on jobs log on deadline. | ||
# Because the farm publish function imports every publish file before filtering. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (84 > 79 characters)
def update_render_layers_state(): | ||
for render_layer in bpy.context.window_manager.render_layers_to_use: | ||
bpy.context.scene.view_layers[render_layer.name].use = render_layer.value | ||
log.info(f"Render layer {render_layer.name} has been set to {render_layer.value}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (90 > 79 characters)
|
||
def update_render_layers_state(): | ||
for render_layer in bpy.context.window_manager.render_layers_to_use: | ||
bpy.context.scene.view_layers[render_layer.name].use = render_layer.value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (81 > 79 characters)
return setattr(rgetattr(obj, pre) if pre else obj, post, val) | ||
|
||
|
||
def rgetattr(obj, attr, *args): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
too many blank lines (2)
|
||
for render_property in bpy.context.window_manager.render_list_properties: | ||
set_attribute(render_property.path, render_property.items) | ||
log.info(f"attribute {render_property.path} has been set to {render_property.items}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (93 > 79 characters)
def set_scene_render_properties(): | ||
for render_property in bpy.context.window_manager.render_bool_properties: | ||
set_attribute(render_property.path, render_property.value) | ||
log.info(f"attribute {render_property.path} has been set to {render_property.value}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (93 > 79 characters)
No description provided.