Skip to content

Commit 4ca52f1

Browse files
committed
Merge branch 'release/v0.2.5'
2 parents 01738ce + 0b62549 commit 4ca52f1

27 files changed

+449
-417
lines changed

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Bug Report
22
description: Report an issue or a bug.
33
title: "[BUG]: << Please use a comprehensive title... >>"
4-
labels: [ Defect ]
4+
labels: [Defect]
55

66
body:
77
- type: markdown

.github/ISSUE_TEMPLATE/documentation-improvement.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Documentation Improvement
22
description: Report a documentation improvement.
33
title: "[DOCUMENTATION]: << Please use a comprehensive title... >>"
4-
labels: [ Documentation ]
4+
labels: [Documentation]
55

66
body:
77
- type: markdown

.github/ISSUE_TEMPLATE/feature-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Feature Request
22
description: Suggest a new feature to implement.
33
title: "[FEATURE]: << Please use a comprehensive title... >>"
4-
labels: [ Feature ]
4+
labels: [Feature]
55

66
body:
77
- type: markdown

.github/ISSUE_TEMPLATE/question.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Question
22
description: Ask a question.
33
title: "[DISCUSSION]: << Please use a comprehensive title... >>"
4-
labels: [ Discussion ]
4+
labels: [Discussion]
55

66
body:
77
- type: markdown

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

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,41 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ubuntu-22.04]
11-
python-version: [3.11]
11+
python-version: [3.12]
1212
fail-fast: false
1313
runs-on: ${{ matrix.os }}
1414
steps:
15-
- uses: actions/checkout@v1
16-
- name: Environment Variables
17-
run: |
18-
echo "CI_PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
19-
echo "CI_PACKAGE=colour_datasets" >> $GITHUB_ENV
20-
echo "CI_SHA=${{ github.sha }}" >> $GITHUB_ENV
21-
echo "MPLBACKEND=AGG" >> $GITHUB_ENV
22-
echo "COLOUR_SCIENCE__DOCUMENTATION_BUILD=True" >> $GITHUB_ENV
23-
shell: bash
24-
- name: Set up Python ${{ matrix.python-version }}
25-
uses: actions/setup-python@v1
26-
with:
27-
python-version: ${{ matrix.python-version }}
28-
- name: Install Dependencies
29-
run: |
30-
sudo apt-get update
31-
sudo apt-get --yes install latexmk texlive-full
32-
- name: Install Poetry
33-
env:
34-
POETRY_VERSION: 1.4.0
35-
run: |
36-
curl -sSL https://install.python-poetry.org | POETRY_HOME=$HOME/.poetry python3 -
37-
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
38-
shell: bash
39-
- name: Install Package Dependencies
40-
run: |
41-
poetry run python -m pip install --upgrade pip
42-
poetry install
43-
poetry run python -c "import imageio;imageio.plugins.freeimage.download()"
44-
shell: bash
45-
- name: Build Documentation
46-
run: |
47-
poetry run invoke docs
48-
shell: bash
15+
- uses: actions/checkout@v1
16+
- name: Environment Variables
17+
run: |
18+
echo "CI_PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
19+
echo "CI_PACKAGE=colour_datasets" >> $GITHUB_ENV
20+
echo "CI_SHA=${{ github.sha }}" >> $GITHUB_ENV
21+
echo "MPLBACKEND=AGG" >> $GITHUB_ENV
22+
echo "COLOUR_SCIENCE__DOCUMENTATION_BUILD=True" >> $GITHUB_ENV
23+
shell: bash
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
- name: Install Dependencies
29+
run: |
30+
sudo apt-get update
31+
sudo apt-get --yes install latexmk texlive-full
32+
- name: Install Poetry
33+
env:
34+
POETRY_VERSION: 1.4.0
35+
run: |
36+
curl -sSL https://install.python-poetry.org | POETRY_HOME=$HOME/.poetry python3 -
37+
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
38+
shell: bash
39+
- name: Install Package Dependencies
40+
run: |
41+
poetry run python -m pip install --upgrade pip
42+
poetry install
43+
poetry run python -c "import imageio;imageio.plugins.freeimage.download()"
44+
shell: bash
45+
- name: Build Documentation
46+
run: |
47+
poetry run invoke docs
48+
shell: bash

.github/workflows/continuous-integration-quality-unit-tests.yml

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -8,51 +8,51 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ubuntu-22.04]
11-
python-version: [3.11]
11+
python-version: [3.12]
1212
fail-fast: false
1313
runs-on: ${{ matrix.os }}
1414
steps:
15-
- uses: actions/checkout@v1
16-
- name: Environment Variables
17-
run: |
18-
echo "CI_PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
19-
echo "CI_PACKAGE=colour_datasets" >> $GITHUB_ENV
20-
echo "CI_SHA=${{ github.sha }}" >> $GITHUB_ENV
21-
echo "COVERALLS_REPO_TOKEN=${{ secrets.COVERALLS_REPO_TOKEN }}" >> $GITHUB_ENV
22-
shell: bash
23-
- name: Set up Python 3.9 for Pre-Commit
24-
uses: actions/setup-python@v1
25-
with:
26-
python-version: 3.9
27-
- name: Set up Python ${{ matrix.python-version }}
28-
uses: actions/setup-python@v1
29-
with:
30-
python-version: ${{ matrix.python-version }}
31-
- name: Install Poetry
32-
env:
33-
POETRY_VERSION: 1.4.0
34-
run: |
35-
curl -sSL https://install.python-poetry.org | POETRY_HOME=$HOME/.poetry python3 -
36-
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
37-
shell: bash
38-
- name: Install Package Dependencies
39-
run: |
40-
poetry run python -m pip install --upgrade pip
41-
poetry install
42-
shell: bash
43-
- name: Pre-Commit (All Files)
44-
run: |
45-
poetry run pre-commit run --all-files
46-
shell: bash
47-
- name: Test Optimised Python Execution
48-
run: |
49-
poetry run python -OO -c "import $CI_PACKAGE"
50-
shell: bash
51-
- name: Test with Pytest
52-
run: |
53-
poetry run python -W ignore -m pytest --doctest-modules --ignore=$CI_PACKAGE/examples --cov=$CI_PACKAGE $CI_PACKAGE
54-
shell: bash
55-
- name: Upload Coverage to coveralls.io
56-
run: |
57-
if [ -z "$COVERALLS_REPO_TOKEN" ]; then echo \"COVERALLS_REPO_TOKEN\" secret is undefined!; else poetry run coveralls; fi
58-
shell: bash
15+
- uses: actions/checkout@v1
16+
- name: Environment Variables
17+
run: |
18+
echo "CI_PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
19+
echo "CI_PACKAGE=colour_datasets" >> $GITHUB_ENV
20+
echo "CI_SHA=${{ github.sha }}" >> $GITHUB_ENV
21+
echo "COVERALLS_REPO_TOKEN=${{ secrets.COVERALLS_REPO_TOKEN }}" >> $GITHUB_ENV
22+
shell: bash
23+
- name: Set up Python 3.9 for Pre-Commit
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: 3.9
27+
- name: Set up Python ${{ matrix.python-version }}
28+
uses: actions/setup-python@v4
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
- name: Install Poetry
32+
env:
33+
POETRY_VERSION: 1.4.0
34+
run: |
35+
curl -sSL https://install.python-poetry.org | POETRY_HOME=$HOME/.poetry python3 -
36+
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
37+
shell: bash
38+
- name: Install Package Dependencies
39+
run: |
40+
poetry run python -m pip install --upgrade pip
41+
poetry install
42+
shell: bash
43+
- name: Pre-Commit (All Files)
44+
run: |
45+
poetry run pre-commit run --all-files
46+
shell: bash
47+
- name: Test Optimised Python Execution
48+
run: |
49+
poetry run python -OO -c "import $CI_PACKAGE"
50+
shell: bash
51+
- name: Test with Pytest
52+
run: |
53+
poetry run python -W ignore -m pytest --doctest-modules --ignore=$CI_PACKAGE/examples --cov=$CI_PACKAGE $CI_PACKAGE
54+
shell: bash
55+
- name: Upload Coverage to coveralls.io
56+
run: |
57+
if [ -z "$COVERALLS_REPO_TOKEN" ]; then echo \"COVERALLS_REPO_TOKEN\" secret is undefined!; else poetry run coveralls; fi
58+
shell: bash

.github/workflows/continuous-integration-static-type-checking.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@ jobs:
88
strategy:
99
matrix:
1010
os: [macOS-latest]
11-
python-version: [3.11]
11+
python-version: [3.12]
1212
fail-fast: false
1313
runs-on: ${{ matrix.os }}
1414
steps:
15-
- uses: actions/checkout@v1
16-
- name: Environment Variables
17-
run: |
18-
echo "CI_PACKAGE=colour_datasets" >> $GITHUB_ENV
19-
shell: bash
20-
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v1
22-
with:
23-
python-version: ${{ matrix.python-version }}
24-
- name: Install Package Dependencies
25-
run: |
26-
pip install -r requirements.txt
27-
- name: Static Type Checking
28-
run: |
29-
pyright --skipunannotated
15+
- uses: actions/checkout@v1
16+
- name: Environment Variables
17+
run: |
18+
echo "CI_PACKAGE=colour_datasets" >> $GITHUB_ENV
19+
shell: bash
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install Package Dependencies
25+
run: |
26+
pip install -r requirements.txt
27+
- name: Static Type Checking
28+
run: |
29+
pyright --skipunannotated

.pre-commit-config.yaml

Lines changed: 50 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,56 @@
11
repos:
2-
- repo: https://github.com/ikamensh/flynt/
3-
rev: '1.0.1'
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: "v4.5.0"
44
hooks:
5-
- id: flynt
6-
- repo: https://github.com/PyCQA/isort
7-
rev: '5.12.0'
5+
- id: check-added-large-files
6+
- id: check-case-conflict
7+
- id: check-merge-conflict
8+
- id: check-symlinks
9+
- id: check-yaml
10+
- id: debug-statements
11+
- id: end-of-file-fixer
12+
- id: mixed-line-ending
13+
- id: name-tests-test
14+
args: ["--pytest-test-first"]
15+
- id: requirements-txt-fixer
16+
- id: trailing-whitespace
17+
- repo: https://github.com/codespell-project/codespell
18+
rev: v2.2.6
819
hooks:
9-
- id: isort
10-
- repo: https://github.com/charliermarsh/ruff-pre-commit
11-
rev: 'v0.0.285'
20+
- id: codespell
21+
args: ["--ignore-words-list=exitance,seperately"]
22+
exclude: "BIBLIOGRAPHY.bib|CONTRIBUTORS.rst"
23+
- repo: https://github.com/ikamensh/flynt
24+
rev: "1.0.1"
1225
hooks:
13-
- id: ruff
14-
- repo: https://github.com/psf/black
15-
rev: 23.7.0
26+
- id: flynt
27+
args: [--verbose]
28+
- repo: https://github.com/PyCQA/isort
29+
rev: "5.12.0"
1630
hooks:
17-
- id: black
18-
language_version: python3.9
19-
- repo: https://github.com/keewis/blackdoc
20-
rev: v0.3.8
31+
- id: isort
32+
- repo: https://github.com/astral-sh/ruff-pre-commit
33+
rev: "v0.1.6"
2134
hooks:
22-
- id: blackdoc
23-
language_version: python3.9
35+
- id: ruff
36+
- repo: https://github.com/psf/black-pre-commit-mirror
37+
rev: 23.11.0
38+
hooks:
39+
- id: black
40+
language_version: python3.9
41+
- repo: https://github.com/adamchainz/blacken-docs
42+
rev: 1.16.0
43+
hooks:
44+
- id: blacken-docs
45+
language_version: python3.9
46+
- repo: https://github.com/pre-commit/mirrors-prettier
47+
rev: "v3.1.0"
48+
hooks:
49+
- id: prettier
50+
exclude: config-aces-reference.ocio.yaml
51+
- repo: https://github.com/pre-commit/pygrep-hooks
52+
rev: "v1.10.0"
53+
hooks:
54+
- id: rst-backticks
55+
- id: rst-directive-colons
56+
- id: rst-inline-touching-normal

.readthedocs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ build:
66
python: "3.11"
77

88
sphinx:
9-
configuration: docs/conf.py
9+
configuration: docs/conf.py
1010

1111
formats:
1212
- htmlzip
1313
- pdf
1414

1515
python:
1616
install:
17-
- requirements: docs/requirements.txt
17+
- requirements: docs/requirements.txt

CODE_OF_CONDUCT.md

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,22 @@ In the interest of fostering an open and welcoming environment, we as contributo
88

99
Examples of behavior that contributes to creating a positive environment include:
1010

11-
* Using welcoming and inclusive language
12-
* Being respectful of differing viewpoints and experiences
13-
* Gracefully accepting constructive criticism
14-
* Focusing on what is best for the community
15-
* Showing empathy towards other community members
11+
- Using welcoming and inclusive language
12+
- Being respectful of differing viewpoints and experiences
13+
- Gracefully accepting constructive criticism
14+
- Focusing on what is best for the community
15+
- Showing empathy towards other community members
1616

1717
Examples of unacceptable behavior by participants include:
1818

19-
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20-
* Trolling, insulting/derogatory comments, and personal or political attacks
21-
* Public or private harassment
22-
* Publishing others’ private information, such as a physical or electronic address, without explicit permission
23-
* Other conduct which could reasonably be considered inappropriate in a professional setting
19+
- The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
- Trolling, insulting/derogatory comments, and personal or political attacks
21+
- Public or private harassment
22+
- Publishing others’ private information, such as a physical or electronic address, without explicit permission
23+
- Other conduct which could reasonably be considered inappropriate in a professional setting
2424

2525
## Our Responsibilities
2626

27-
2827
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
2928

3029
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
@@ -35,7 +34,6 @@ This Code of Conduct applies within all project spaces, and it also applies when
3534

3635
## Enforcement
3736

38-
3937
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting Thomas Mansencal and Michael Mauderer via email at thomas@colour-science.org and michael@colour-science.org respectively. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
4038

4139
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project’s leadership.
@@ -46,6 +44,5 @@ This Code of Conduct is adapted from the Contributor Covenant, version 1.4, avai
4644

4745
For answers to common questions about this code of conduct, see [https://www.contributor-covenant.org/faq][faq].
4846

49-
5047
[homepage]: https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
51-
[faq]: https://www.contributor-covenant.org/faq
48+
[faq]: https://www.contributor-covenant.org/faq

0 commit comments

Comments
 (0)