Skip to content

Commit

Permalink
Pre-commit: initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
howetuft committed Dec 17, 2023
1 parent 3a168c9 commit 67e239e
Show file tree
Hide file tree
Showing 74 changed files with 145 additions and 134 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ jobs:
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
Expand All @@ -61,7 +61,7 @@ jobs:
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
Expand Down
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.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: 22.10.0
hooks:
- id: black
18 changes: 9 additions & 9 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ library. If the library is modified by someone else and passed on, we
want its recipients to know that what they have is not the original
version, so that any problems introduced by others will not reflect on
the original authors' reputations.

Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that companies distributing free
software will individually obtain patent licenses, thus in effect
Expand Down Expand Up @@ -99,7 +99,7 @@ works together with the library.

Note that it is possible for a library to be covered by the ordinary
General Public License rather than by this special one.

GNU LIBRARY GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

Expand Down Expand Up @@ -134,7 +134,7 @@ such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.

1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
Expand All @@ -146,7 +146,7 @@ Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.

2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
Expand Down Expand Up @@ -204,7 +204,7 @@ instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.

Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
Expand Down Expand Up @@ -255,7 +255,7 @@ Library will still fall under Section 6.)
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.

6. As an exception to the Sections above, you may also compile or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
Expand Down Expand Up @@ -309,7 +309,7 @@ restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.

7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
Expand Down Expand Up @@ -350,7 +350,7 @@ subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.

11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
Expand Down Expand Up @@ -402,7 +402,7 @@ conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.

14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
Expand Down
14 changes: 7 additions & 7 deletions Render/renderers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ To add support for a new renderer, you will need to add at least 3 files:
| ---------------- | --------: | -------------- | ---------------------|
| Renderer plug-in | 1 | This directory | Python |
| Icon | 1 | ../icons | Image (png, svg...) |
| Templates | 1 or more | ../templates | Your renderer format |
| Templates | 1 or more | ../templates | Your renderer format |

Optionally, but in a strongly recommended way, you will also add a few entries in module's Preferences.
In particular, it is strongly recommended to include the following parameters:
Expand All @@ -32,9 +32,9 @@ In particular, it is strongly recommended to include the following parameters:

### Renderer plug-in
#### Naming

You need to make sure your plugin file is named with the same name (case sensitive)
that you will use everywhere to describe your renderer.
that you will use everywhere to describe your renderer.

This name must start with a capital letter, and have a '.py' extension.

Expand All @@ -47,7 +47,7 @@ The plugin must contain the following functions:

* `write_mesh(name, mesh, material, **kwargs)`

Expected behaviour:
Expected behaviour:
Return a string containing a mesh object description in renderer SDL

Input parameters:
Expand All @@ -62,7 +62,7 @@ The plugin must contain the following functions:

* `write_camera(name, pos, up, target, **kwargs)`

Expected behaviour:
Expected behaviour:
Return a string containing a camera description in renderer SDL

Input parameters:
Expand All @@ -79,7 +79,7 @@ The plugin must contain the following functions:

* `write_pointlight(name, pos, color, power, **kwargs)`

Expected behaviour:
Expected behaviour:
Return a string containing a point light description in renderer SDL

Input parameters:
Expand Down Expand Up @@ -127,7 +127,7 @@ The plugin must contain the following functions:

* `render(project, prefix, external, output, width, height)`

Expected behaviour:
Expected behaviour:
Generate a command to render the given project. The command is meant to be executed by
the framework.
This function is in charge of writing the renderer input file and building the system
Expand Down
2 changes: 1 addition & 1 deletion Render/renderers/as_shaders/PyLa.oso
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
OpenShadingLanguage 1.00
# Compiled by oslc 1.11.14
# options:
# options:
shader PyLa
param closure color Base %read{52,52} %write{0,0} %initexpr
param closure color Layer %read{56,56} %write{2147483647,-1}
Expand Down
2 changes: 1 addition & 1 deletion Render/renderers/as_shaders/as_anisotropy_vector_field.oso
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
OpenShadingLanguage 1.00
# Compiled by oslc 1.11.14
# options: -O2 -DNDEBUG -I/var/cache/private/pikaur/build/appleseed-git/src/appleseed-git/sandbox/shaders/ -I/var/cache/private/pikaur/build/appleseed-git/src/appleseed-git/src/appleseed.shaders/include -o /var/cache/private/pikaur/build/appleseed-git/src/appleseed-git/sandbox/shaders/appleseed/as_anisotropy_vector_field.oso
shader as_anisotropy_vector_field %meta{string,help,"Creates an anisotropy field vector from an input color."} %meta{string,icon,"asAnisotropyVectorField.png"} %meta{string,URL,"https://appleseed.readthedocs.io/projects/appleseed-maya/en/latest/shaders/utilities/as_anisotropy_vector_field.html"} %meta{string,as_node_name,"asAnisotropyVectorField"} %meta{string,as_category,"utility"} %meta{string,as_max_class_id,"755844571 356534419"} %meta{string,as_max_plugin_type,"texture"} %meta{int,as_maya_type_id,1210592} %meta{string,as_maya_classification,"drawdb/shader:rendernode/appleseed/utility"}
shader as_anisotropy_vector_field %meta{string,help,"Creates an anisotropy field vector from an input color."} %meta{string,icon,"asAnisotropyVectorField.png"} %meta{string,URL,"https://appleseed.readthedocs.io/projects/appleseed-maya/en/latest/shaders/utilities/as_anisotropy_vector_field.html"} %meta{string,as_node_name,"asAnisotropyVectorField"} %meta{string,as_category,"utility"} %meta{string,as_max_class_id,"755844571 356534419"} %meta{string,as_max_plugin_type,"texture"} %meta{int,as_maya_type_id,1210592} %meta{string,as_maya_classification,"drawdb/shader:rendernode/appleseed/utility"}
param float in_rotation_angle 0 %meta{string,as_maya_attribute_name,"rotationAngle"} %meta{string,as_maya_attribute_short_name,"rta"} %meta{float,min,-360} %meta{float,max,360} %meta{string,widget,"angle"} %meta{string,label,"Rotation Angle"} %meta{string,page,"Field"} %meta{int,as_maya_attribute_connectable,0} %meta{int,as_maya_attribute_keyable,1} %meta{int,as_maya_attribute_hidden,0} %meta{int,as_blender_input_socket,0} %meta{int,gafferNoduleLayoutVisible,0} %read{3,7} %write{2147483647,-1}
param color in_color 1 1 1 %meta{string,as_maya_attribute_name,"color"} %meta{string,as_maya_attribute_short_name,"c"} %meta{string,label,"Field Color"} %meta{string,page,"Field"} %read{60,62} %write{2147483647,-1}
param int in_field_mode 0 %meta{string,as_maya_attribute_name,"fieldMode"} %meta{string,as_maya_attribute_short_name,"fm"} %meta{string,widget,"mapper"} %meta{string,options,"Red Green as XY:0|Red Blue as XY:1"} %meta{string,label,"Field Mode"} %meta{string,page,"Field"} %meta{int,as_maya_attribute_connectable,0} %meta{int,as_maya_attribute_keyable,0} %meta{int,as_maya_attribute_hidden,1} %meta{int,as_blender_input_socket,0} %meta{int,gafferNoduleLayoutVisible,0} %read{65,65} %write{2147483647,-1}
Expand Down
2 changes: 1 addition & 1 deletion Render/renderers/as_shaders/as_asc_cdl.oso
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
OpenShadingLanguage 1.00
# Compiled by oslc 1.11.14
# options: -O2 -DNDEBUG -I/var/cache/private/pikaur/build/appleseed-git/src/appleseed-git/sandbox/shaders/ -I/var/cache/private/pikaur/build/appleseed-git/src/appleseed-git/src/appleseed.shaders/include -o /var/cache/private/pikaur/build/appleseed-git/src/appleseed-git/sandbox/shaders/appleseed/as_asc_cdl.oso
shader as_asc_cdl %meta{string,icon,"asAscCdl.png"} %meta{string,help,"Slope/Offset/Power Color Decision List utility shader according to the American Society of Cinematographers"} %meta{string,URL,"https://appleseed.readthedocs.io/projects/appleseed-maya/en/latest/shaders/utilities/as_asc_cdl.html"} %meta{string,as_node_name,"asAscCdl"} %meta{string,as_category,"utility"} %meta{string,as_max_class_id,"1669361528 687027596"} %meta{string,as_max_plugin_type,"texture"} %meta{int,as_maya_type_id,1210887} %meta{string,as_maya_classification,"drawdb/shader:rendernode/appleseed/utility"}
shader as_asc_cdl %meta{string,icon,"asAscCdl.png"} %meta{string,help,"Slope/Offset/Power Color Decision List utility shader according to the American Society of Cinematographers"} %meta{string,URL,"https://appleseed.readthedocs.io/projects/appleseed-maya/en/latest/shaders/utilities/as_asc_cdl.html"} %meta{string,as_node_name,"asAscCdl"} %meta{string,as_category,"utility"} %meta{string,as_max_class_id,"1669361528 687027596"} %meta{string,as_max_plugin_type,"texture"} %meta{int,as_maya_type_id,1210887} %meta{string,as_maya_classification,"drawdb/shader:rendernode/appleseed/utility"}
param color in_color 0 0 0 %meta{string,as_maya_attribute_name,"color"} %meta{string,as_maya_attribute_short_name,"c"} %meta{string,label,"Input Color"} %meta{string,page,"Color"} %meta{string,help,"Input color."} %meta{int,divider,1} %read{0,0} %write{2147483647,-1}
param string in_rgb_primaries "sRGB/Rec.709" %meta{string,as_maya_attribute_name,"rgbPrimaries"} %meta{string,as_maya_attribute_short_name,"pri"} %meta{string,widget,"popup"} %meta{string,options,"Rec.601|sRGB/Rec.709|AdobeRGB|Rec.2020|ACES|ACEScg|DCI-P3"} %meta{string,label,"RGBW Primaries"} %meta{string,page,"Color"} %meta{string,help,"RGB primaries and white point of the input color."} %meta{int,as_maya_attribute_connectable,0} %meta{int,as_maya_attribute_keyable,0} %meta{int,as_maya_attribute_hidden,1} %meta{int,as_blender_input_socket,0} %meta{int,gafferNoduleLayoutVisible,0} %read{4,32} %write{2147483647,-1}
param float in_slope 1 %meta{string,as_maya_attribute_name,"slope"} %meta{string,as_maya_attribute_short_name,"slo"} %meta{float,min,0} %meta{float,max,10000} %meta{float,softmin,0} %meta{float,softmax,10} %meta{string,label,"Slope"} %meta{string,page,"Correction"} %meta{string,help,"Slope (adjusts the highlights)."} %read{0,0} %write{2147483647,-1}
Expand Down
2 changes: 1 addition & 1 deletion Render/renderers/as_shaders/as_attributes.oso
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
OpenShadingLanguage 1.00
# Compiled by oslc 1.11.14
# options: -O2 -DNDEBUG -I/var/cache/private/pikaur/build/appleseed-git/src/appleseed-git/sandbox/shaders/ -I/var/cache/private/pikaur/build/appleseed-git/src/appleseed-git/src/appleseed.shaders/include -o /var/cache/private/pikaur/build/appleseed-git/src/appleseed-git/sandbox/shaders/appleseed/as_attributes.oso
shader as_attributes %meta{string,help,"OSL and appleseed attributes."} %meta{string,icon,"asAttributes.png"} %meta{string,URL,"https://appleseed.readthedocs.io/projects/appleseed-maya/en/latest/shaders/utilities/as_attributes.html"} %meta{string,as_node_name,"asAttributes"} %meta{string,as_category,"utility"} %meta{string,as_max_class_id,"1006520102 421015477"} %meta{string,as_max_plugin_type,"texture"} %meta{string,as_maya_classification,"drawdb/shader:rendernode/appleseed/utility"} %meta{int,as_maya_type_id,1210872}
shader as_attributes %meta{string,help,"OSL and appleseed attributes."} %meta{string,icon,"asAttributes.png"} %meta{string,URL,"https://appleseed.readthedocs.io/projects/appleseed-maya/en/latest/shaders/utilities/as_attributes.html"} %meta{string,as_node_name,"asAttributes"} %meta{string,as_category,"utility"} %meta{string,as_max_class_id,"1006520102 421015477"} %meta{string,as_max_plugin_type,"texture"} %meta{string,as_maya_classification,"drawdb/shader:rendernode/appleseed/utility"} %meta{int,as_maya_type_id,1210872}
oparam int out_object_instance_id 0 %meta{string,as_maya_attribute_name,"objectInstanceId"} %meta{string,as_maya_attribute_short_name,"oid"} %meta{string,label,"Object Instance ID"} %read{2147483647,-1} %write{0,0}
oparam int out_object_instance_index 0 %meta{string,as_maya_attribute_name,"objectInstanceIndex"} %meta{string,as_maya_attribute_short_name,"odx"} %meta{string,label,"Object Instance Index"} %read{2147483647,-1} %write{1,1}
oparam string out_object_instance_name "" %meta{string,as_maya_attribute_name,"objectInstanceName"} %meta{string,as_maya_attribute_short_name,"oin"} %meta{string,label,"Object Instance Name"} %read{2147483647,-1} %write{2,2}
Expand Down
2 changes: 1 addition & 1 deletion Render/renderers/as_shaders/as_blackbody.oso
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
OpenShadingLanguage 1.00
# Compiled by oslc 1.11.14
# options: -O2 -DNDEBUG -I/var/cache/private/pikaur/build/appleseed-git/src/appleseed-git/sandbox/shaders/ -I/var/cache/private/pikaur/build/appleseed-git/src/appleseed-git/src/appleseed.shaders/include -o /var/cache/private/pikaur/build/appleseed-git/src/appleseed-git/sandbox/shaders/appleseed/as_blackbody.oso
shader as_blackbody %meta{string,help,"Emission shader with black-body radiation."} %meta{string,icon,"asBlackbody.png"} %meta{string,URL,"https://appleseed.readthedocs.io/projects/appleseed-maya/en/latest/shaders/material/as_blackbody.html"} %meta{string,as_node_name,"asBlackbody"} %meta{string,as_category,"shader"} %meta{string,as_max_class_id,"1182349026 1064055537"} %meta{string,as_max_plugin_type,"texture"} %meta{int,as_maya_type_id,1210832} %meta{string,as_maya_classification,"drawdb/shader/surface:rendernode/appleseed/surface:shader/surface:swatch/AppleseedRenderSwatch"}
shader as_blackbody %meta{string,help,"Emission shader with black-body radiation."} %meta{string,icon,"asBlackbody.png"} %meta{string,URL,"https://appleseed.readthedocs.io/projects/appleseed-maya/en/latest/shaders/material/as_blackbody.html"} %meta{string,as_node_name,"asBlackbody"} %meta{string,as_category,"shader"} %meta{string,as_max_class_id,"1182349026 1064055537"} %meta{string,as_max_plugin_type,"texture"} %meta{int,as_maya_type_id,1210832} %meta{string,as_maya_classification,"drawdb/shader/surface:rendernode/appleseed/surface:shader/surface:swatch/AppleseedRenderSwatch"}
param int in_incandescence_type 0 %meta{string,as_maya_attribute_name,"incandescenceType"} %meta{string,as_maya_attribute_short_name,"int"} %meta{string,widget,"mapper"} %meta{string,options,"Custom:0|Black-body:1"} %meta{string,label,"Emission Type"} %meta{string,page,"Emission"} %meta{string,help,"Custom or black-body radiator EDF."} %meta{int,divider,1} %meta{int,as_maya_attribute_connectable,0} %meta{int,as_maya_attribute_keyable,0} %meta{int,as_maya_attribute_hidden,1} %meta{int,as_blender_input_socket,0} %meta{int,gafferNoduleLayoutVisible,0} %read{57,57} %write{2147483647,-1}
param color in_color 0 0 0 %meta{string,as_maya_attribute_name,"color"} %meta{string,as_maya_attribute_short_name,"inc"} %meta{string,label,"Color"} %meta{string,page,"Emission"} %meta{string,help,"Emission color, only valid in custom mode."} %read{59,59} %write{2147483647,-1}
param float in_incandescence_amount 0 %meta{string,as_maya_attribute_name,"incandescenceAmount"} %meta{string,as_maya_attribute_short_name,"inw"} %meta{float,min,0} %meta{float,softmax,1} %meta{string,label,"Emission Amount"} %meta{string,page,"Emission"} %read{10,83} %write{2147483647,-1}
Expand Down
Loading

0 comments on commit 67e239e

Please sign in to comment.