Skip to content

Commit c78974f

Browse files
Merge pull request #8 from colour-science/feature/v0.2.1
PR: Conform repository
2 parents 2795137 + b1d42fc commit c78974f

17 files changed

+90
-88
lines changed

.github/ISSUE_TEMPLATE/feature-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ body:
77
- type: markdown
88
attributes:
99
value: >
10-
Thank you for taking the time to file a feature request. Before continuing, please take some time to check the existing [issues](https://github.com/colour-science/colour-clf-io/issues) and also the [draft release notes](https://gist.github.com/KelSolaar/4a6ebe9ec3d389f0934b154fec8df51d).
10+
Thank you for taking the time to file a feature request. Before continuing, please take some time to check the existing [issues](https://github.com/colour-science/colour-clf-io/issues).
1111
1212
- type: textarea
1313
attributes:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ is available to guide the process: https://www.colour-science.org/contributing/.
1919
- [ ] Pre-commit hooks have been run and passed.
2020

2121
<!-- The unit tests can be invoked with `uv run invoke tests` -->
22-
<!-- Pyright can be started with `pyright --threads --skipunannotated` -->
22+
<!-- Pyright can be started with `uv run pyright --threads --skipunannotated` -->
2323

2424
**Documentation**
2525

.github/workflows/continuous-integration-documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Environment Variables
1717
run: |
1818
echo "CI_PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
19-
echo "CI_PACKAGE=colour" >> $GITHUB_ENV
19+
echo "CI_PACKAGE=colour_clf_io" >> $GITHUB_ENV
2020
echo "CI_SHA=${{ github.sha }}" >> $GITHUB_ENV
2121
echo "MPLBACKEND=AGG" >> $GITHUB_ENV
2222
echo "COLOUR_SCIENCE__DOCUMENTATION_BUILD=True" >> $GITHUB_ENV

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ repos:
1515
- id: requirements-txt-fixer
1616
- id: trailing-whitespace
1717
- repo: https://github.com/codespell-project/codespell
18-
rev: v2.3.0
18+
rev: v2.4.1
1919
hooks:
2020
- id: codespell
2121
args: ["--ignore-words-list=socio-economic"]
2222
exclude: "BIBLIOGRAPHY.bib|CONTRIBUTORS.rst|.*.ipynb"
2323
- repo: https://github.com/PyCQA/isort
24-
rev: "5.13.2"
24+
rev: "6.0.1"
2525
hooks:
2626
- id: isort
2727
- repo: https://github.com/astral-sh/ruff-pre-commit
28-
rev: "v0.8.2"
28+
rev: "v0.12.4"
2929
hooks:
3030
- id: ruff-format
3131
- id: ruff

colour_clf_io/elements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def as_array(self) -> npt.NDArray:
176176
Array of shape `dim` with the data from `values`.
177177
"""
178178

179-
import numpy as np
179+
import numpy as np # noqa: PLC0415
180180

181181
dim = self.dim
182182
# Strip the dimensions with value 1.

colour_clf_io/tests/processing/test_asc_cdl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
def assert_snippet_consistency(snippet: str) -> None:
1919
"""
20-
Evaluate the snippet with multiple values anc check that they are the same as the
20+
Evaluate the snippet with multiple values and check that they are the same as the
2121
`ociochecklut` tools output.
2222
"""
2323
for rgb in rgb_sample_iter():

colour_clf_io/tests/processing/test_common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ def ocio_output_for_file(
6666
"""Apply a color transform file to a flattened, one-dimensional list of
6767
R,G,B values.
6868
"""
69-
import PyOpenColorIO as ocio
69+
70+
import PyOpenColorIO as ocio # noqa: PLC0415
7071

7172
xform = ocio.FileTransform(src=path) # pyright: ignore[reportAttributeAccessIssue]
7273
cpu = ocio.GetCurrentConfig().getProcessor(xform).getDefaultCPUProcessor() # pyright: ignore[reportAttributeAccessIssue]

colour_clf_io/tests/processing/test_exponent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
def assert_snippet_consistency(snippet: str) -> None:
1919
"""
20-
Evaluate the snippet with multiple values anc check that they are the same as the
20+
Evaluate the snippet with multiple values and check that they are the same as the
2121
`ociochecklut` tools output.
2222
"""
2323
for rgb in rgb_sample_iter():

colour_clf_io/tests/processing/test_log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
def assert_snippet_consistency(snippet: str, decimals: int = 5) -> None:
1919
"""
20-
Evaluate the snippet with multiple values anc check that they are the same as the
20+
Evaluate the snippet with multiple values and check that they are the same as the
2121
`ociochecklut` tools output.
2222
"""
2323
for rgb in rgb_sample_iter():

colour_clf_io/tests/test_clf_common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ def validate_clf_schema_smtp_st2136_1(doc: str) -> ValidationResult:
191191
:class:`bool`
192192
Whether the document is valid according to the schema.
193193
"""
194-
import pytest
194+
195+
import pytest # noqa: PLC0415
195196

196197
if not st2136_1a_202x_schema_available():
197198
pytest.skip("Schema not available for validation.")

0 commit comments

Comments
 (0)