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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 25.1.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.1.0
hooks:
- id: black
1 change: 1 addition & 0 deletions Render/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

It imports all the public symbols which make up the Render Workbench API.
"""

import FreeCAD as App

App.Console.PrintLog("[Render][Init] Starting Render initialization\n")
Expand Down
1 change: 0 additions & 1 deletion Render/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
)
from Render.rdrhandler import RenderingTypes


# Enumeration of allowed values for ViewportMapping parameter (see Coin
# documentation)
# Nota: Keep following tuple in original order, as relationship between
Expand Down
1 change: 0 additions & 1 deletion Render/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
from Render.rendermaterial import is_multimat
from Render.subcontainer import start_plugin


# ===========================================================================
# Mixins (additional features for commands)
# ===========================================================================
Expand Down
2 changes: 0 additions & 2 deletions Render/lights.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
Light objects allow to illuminate rendering scenes.
"""


# ===========================================================================
# Module imports
# ===========================================================================
Expand All @@ -47,7 +46,6 @@
)
from Render.rdrhandler import RenderingTypes


# ===========================================================================
# Module functions
# ===========================================================================
Expand Down
8 changes: 2 additions & 6 deletions Render/plugins/help/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@

from renderplugin import ARGS, RenderPluginApplication


THISDIR = os.path.dirname(__file__)


Expand Down Expand Up @@ -90,16 +89,13 @@ def __init__(self, starting_url, scripts_dir):
css_path = os.path.join(scripts_dir, "waterlight.css")
css_url = QUrl.fromLocalFile(css_path).url()

script_run_source = (
self.SCRIPT_GREASEBLOCK
+ f"""\
script_run_source = self.SCRIPT_GREASEBLOCK + f"""\
$.when( $.ready).then(function() {{
var now_body = $("body").text();
$("body").html( marked.parse(now_body) );
$("head").append('<link rel="stylesheet" href="{css_url}">');
}});
"""
) # Stylesheet credit: https://github.com/kognise/water.css
""" # Stylesheet credit: https://github.com/kognise/water.css

# Insert scripts into Web view
scripts = self.view.page().scripts()
Expand Down
1 change: 0 additions & 1 deletion Render/plugins/materialx/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
PluginMessageEvent,
)


MX_EVENT_TYPE = QEvent.registerEventType()

# Remark: please do not use:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
SOCKET,
)


# Remark: please do not use:
# - QWebEngineProfile.setDownloadPath
# - QWebEngineDownloadItem.downloadFileName
Expand Down
1 change: 0 additions & 1 deletion Render/prefpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
from Render.rdrhandler import RendererHandler
from Render.virtualenv import ensure_rendervenv, remove_virtualenv


# ===========================================================================
# Main class
# ===========================================================================
Expand Down
2 changes: 0 additions & 2 deletions Render/rdrhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
input colors in linear colorspace. A conversion is made.
"""


# ===========================================================================
# Imports
# ===========================================================================
Expand All @@ -57,7 +56,6 @@
from Render import renderables
from Render import rendermaterial


# ===========================================================================
# Constants
# ===========================================================================
Expand Down
2 changes: 0 additions & 2 deletions Render/renderables.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
Renderables
"""


# ===========================================================================
# Imports
# ===========================================================================
Expand Down Expand Up @@ -82,7 +81,6 @@ def isA2pPart(_):
from Render.rendermaterial import is_multimat, is_valid_material
from Render.rdrexecutor import exec_in_mainthread


# ===========================================================================
# Exports
# ===========================================================================
Expand Down
1 change: 0 additions & 1 deletion Render/renderers/Povray.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@

from .utils.misc import fovy_to_fovx


TEMPLATE_FILTER = "Povray templates (povray_*.pov)"

mimetypes.init()
Expand Down
2 changes: 0 additions & 2 deletions Render/renderers/utils/sunlight.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@
Usage: one may essentially use 'sunlight' function
"""


import bisect
import numbers
from math import exp, cos, pi as PI, radians
from collections import namedtuple


# ===========================================================================
# Photometric data
# ===========================================================================
Expand Down
1 change: 0 additions & 1 deletion Render/rendermaterial.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
)
from Render.texture import str2imageid, str2imageid_ext


# ===========================================================================
# Standard materials
# ===========================================================================
Expand Down
1 change: 0 additions & 1 deletion Render/rendermesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
from Render.rendermesh_mp import vector3d
from Render.utils import debug


RenderMeshDirs = collections.namedtuple(
"RenderMeshDirs",
("project_directory", "export_directory", "relative_path"),
Expand Down
1 change: 0 additions & 1 deletion Render/rendermesh_mp/autosmooth.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
from multiprocessing import shared_memory
import multiprocessing as mp


try:
import numpy as np
from numpy import bitwise_or, left_shift
Expand Down
1 change: 0 additions & 1 deletion Render/rendermesh_mp/uvmap_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
barycenter,
)


# Vocabulary:
# Point: a 3-tuple of float designing a point in 3D
# Facet: a 3-tuple of indices (integer) pointing to 3 points in a point list
Expand Down
1 change: 0 additions & 1 deletion Render/taskpanels.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

"""This module implements GUI task panels for Render workbench."""


import os
import re
import configparser
Expand Down
1 change: 0 additions & 1 deletion Render/texture.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
from Render.base import FeatureBase, ViewProviderBase, Prop, CtxMenuItem
from Render.utils import translate


ImageId = namedtuple("ImageId", "texture image")


Expand Down
1 change: 0 additions & 1 deletion Render/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
rendering project.
"""


from PySide.QtCore import QT_TRANSLATE_NOOP

from Render.constants import FCDVERSION
Expand Down
2 changes: 1 addition & 1 deletion renderplugin/src/renderplugin/plugin_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
A plugin is an applet that can be launched by Render in a separate process,
with an access to Render virtual environment.
"""

import sys
import os
import signal
Expand All @@ -45,7 +46,6 @@
)
from qtpy.QtWidgets import QApplication, QMainWindow, QMessageBox


sys.path.append(os.getcwd())


Expand Down
Loading