Skip to content

Commit

Permalink
Merge branch 'feature/v0.2.6' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
KelSolaar committed Jul 27, 2024
2 parents 499bb4e + ae1fac1 commit bf252db
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
name: ${{ matrix.os }} - Python ${{ matrix.python-version }}
strategy:
matrix:
os: [ubuntu-22.04]
os: [ubuntu-latest]
python-version: [3.12]
fail-fast: false
runs-on: ${{ matrix.os }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
name: ${{ matrix.os }} - Python ${{ matrix.python-version }}
strategy:
matrix:
os: [macOS-latest, ubuntu-22.04, windows-latest]
os: [macOS-latest, ubuntu-latest, windows-latest]
python-version: [3.9, "3.10", 3.11, 3.12]
fail-fast: false
runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ repos:
rev: 1.16.0
hooks:
- id: blacken-docs
language_version: python3.9
language_version: python3.10
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.1.0"
hooks:
Expand Down
8 changes: 1 addition & 7 deletions colour_demosaicing/bayer/demosaicing/tests/test_bilinear.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# !/usr/bin/env python
"""
Define the unit tests for the
:mod:`colour_demosaicing.bayer.demosaicing.bilinear` module.
Expand All @@ -7,7 +6,6 @@
from __future__ import annotations

import os
import unittest

import numpy as np
from colour import read_image
Expand All @@ -33,7 +31,7 @@
)


class TestDemosaicing_CFA_Bayer_bilinear(unittest.TestCase):
class TestDemosaicing_CFA_Bayer_bilinear:
"""
Define :func:`colour_demosaicing.bayer.demosaicing.bilinear.\
demosaicing_CFA_Bayer_bilinear` definition unit tests methods.
Expand All @@ -56,7 +54,3 @@ def test_demosaicing_CFA_Bayer_bilinear(self):
read_image(str(RGB)),
atol=TOLERANCE_ABSOLUTE_TESTS,
)


if __name__ == "__main__":
unittest.main()
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# !/usr/bin/env python
"""
Define the unit tests for the
:mod:`colour_demosaicing.bayer.demosaicing.malvar2004` module.
Expand All @@ -7,7 +6,6 @@
from __future__ import annotations

import os
import unittest

import numpy as np
from colour import read_image
Expand All @@ -33,7 +31,7 @@
)


class TestDemosaicing_CFA_Bayer_Malvar2004(unittest.TestCase):
class TestDemosaicing_CFA_Bayer_Malvar2004:
"""
Define :func:`colour_demosaicing.bayer.demosaicing.malvar2004.\
demosaicing_CFA_Bayer_Malvar2004` definition unit tests methods.
Expand All @@ -56,7 +54,3 @@ def test_demosaicing_CFA_Bayer_Malvar2004(self):
read_image(str(RGB)),
atol=TOLERANCE_ABSOLUTE_TESTS,
)


if __name__ == "__main__":
unittest.main()
8 changes: 1 addition & 7 deletions colour_demosaicing/bayer/demosaicing/tests/test_menon2007.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# !/usr/bin/env python
"""
Define the unit tests for the
:mod:`colour_demosaicing.bayer.demosaicing.menon2007` module.
Expand All @@ -7,7 +6,6 @@
from __future__ import annotations

import os
import unittest

import numpy as np
from colour import read_image
Expand All @@ -33,7 +31,7 @@
)


class TestDemosaicing_CFA_Bayer_Menon2007(unittest.TestCase):
class TestDemosaicing_CFA_Bayer_Menon2007:
"""
Define :func:`colour_demosaicing.bayer.demosaicing.menon2007.\
demosaicing_CFA_Bayer_Menon2007` definition unit tests methods.
Expand Down Expand Up @@ -69,7 +67,3 @@ def test_demosaicing_CFA_Bayer_Menon2007(self):
read_image(str(RGB)),
atol=TOLERANCE_ABSOLUTE_TESTS,
)


if __name__ == "__main__":
unittest.main()
8 changes: 1 addition & 7 deletions colour_demosaicing/bayer/tests/test_masks.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# !/usr/bin/env python
"""Define the unit tests for the :mod:`colour_demosaicing.bayer.masks` module."""

from __future__ import annotations

import os
import unittest

import numpy as np
from colour import read_image
Expand All @@ -31,7 +29,7 @@
)


class TestMasks_CFA_Bayer(unittest.TestCase):
class TestMasks_CFA_Bayer:
"""
Define :func:`colour_demosaicing.bayer.masks.masks_CFA_Bayer` definition
unit tests methods.
Expand All @@ -50,7 +48,3 @@ def test_masks_CFA_Bayer(self):
read_image(str(mask)),
atol=TOLERANCE_ABSOLUTE_TESTS,
)


if __name__ == "__main__":
unittest.main()
8 changes: 1 addition & 7 deletions colour_demosaicing/bayer/tests/test_mosaicing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# !/usr/bin/env python
"""
Define the unit tests for the :mod:`colour_demosaicing.bayer.mosaicing`
module.
Expand All @@ -7,7 +6,6 @@
from __future__ import annotations

import os
import unittest

import numpy as np
from colour import read_image
Expand All @@ -33,7 +31,7 @@
)


class TestMosaicing_CFA_Bayer(unittest.TestCase):
class TestMosaicing_CFA_Bayer:
"""
Define :func:`colour_demosaicing.bayer.mosaicing.mosaicing_CFA_Bayer`
definition unit tests methods.
Expand All @@ -54,7 +52,3 @@ def test_mosaicing_CFA_Bayer(self):
read_image(str(CFA))[..., 0],
atol=TOLERANCE_ABSOLUTE_TESTS,
)


if __name__ == "__main__":
unittest.main()
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ convention = "numpy"
"colour_demosaicing/examples/*" = ["INP", "T201", "T203"]
"docs/*" = ["INP"]
"tasks.py" = ["INP"]
"test_*" = ["S101"]
"utilities/*" = ["EXE001", "INP"]
"utilities/unicode_to_ascii.py" = ["RUF001"]

Expand Down

0 comments on commit bf252db

Please sign in to comment.