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
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v5.0.0"
rev: "v6.0.0"
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -15,23 +15,23 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.1
hooks:
- id: codespell
args: ["--ignore-words-list=socio-economic"]
exclude: "CONTRIBUTORS.rst"
- repo: https://github.com/PyCQA/isort
rev: "5.13.2"
rev: "7.0.0"
hooks:
- id: isort
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.8.2"
rev: "v0.14.0"
hooks:
- id: ruff-format
- id: ruff
args: [--fix]
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.19.1
rev: 1.20.0
hooks:
- id: blacken-docs
language_version: python3.10
Expand Down
2 changes: 1 addition & 1 deletion apps/rgb_colourspace_chromatically_adapted_primaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def update_url_query_on_state_change(
f"""
function(n_clicks) {{
var primariesOutput = document.getElementById(\
"{_uid('primaries-output')}");
"{_uid("primaries-output")}");
var content = primariesOutput.textContent;
navigator.clipboard.writeText(content).then(function() {{
}}, function() {{
Expand Down
6 changes: 2 additions & 4 deletions apps/rgb_colourspace_transformation_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,7 @@ def slugify(string: str) -> str:

M_f = TEMPLATE_NUKE_NODE_COLORMATRIX.format(
name=(
f"{slugify(input_colourspace)}"
f"__to__"
f"{slugify(output_colourspace)}"
f"{slugify(input_colourspace)}__to__{slugify(output_colourspace)}"
),
matrix=nuke_format_matrix(M, decimals),
)
Expand Down Expand Up @@ -439,7 +437,7 @@ def update_url_query_on_state_change(
f"""
function(n_clicks) {{
var rgbColourspaceTransformationMatrixOutput = document.getElementById(\
"{_uid('rgb-colourspace-transformation-matrix-output')}");
"{_uid("rgb-colourspace-transformation-matrix-output")}");
var content = rgbColourspaceTransformationMatrixOutput.textContent;
navigator.clipboard.writeText(content).then(function() {{
}}, function() {{
Expand Down