From c6151060de9bbc77ebda1acc6094f02aecdae1f8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 7 Jan 2025 01:40:58 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v5.0.0) - [github.com/codespell-project/codespell: v2.2.6 → v2.3.0](https://github.com/codespell-project/codespell/compare/v2.2.6...v2.3.0) - [github.com/astral-sh/ruff-pre-commit: v0.1.14 → v0.8.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.14...v0.8.6) - [github.com/adamchainz/blacken-docs: 1.16.0 → 1.19.1](https://github.com/adamchainz/blacken-docs/compare/1.16.0...1.19.1) - [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.1.0...v4.0.0-alpha.8) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 50a4e22..539d44a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: "v4.5.0" + rev: "v5.0.0" hooks: - id: check-added-large-files - id: check-case-conflict @@ -15,7 +15,7 @@ repos: - id: requirements-txt-fixer - id: trailing-whitespace - repo: https://github.com/codespell-project/codespell - rev: v2.2.6 + rev: v2.3.0 hooks: - id: codespell exclude: "BIBLIOGRAPHY.bib|CONTRIBUTORS.rst|.*.ipynb" @@ -29,17 +29,17 @@ repos: hooks: - id: isort - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.14" + rev: "v0.8.6" hooks: - id: ruff-format - id: ruff - repo: https://github.com/adamchainz/blacken-docs - rev: 1.16.0 + rev: 1.19.1 hooks: - id: blacken-docs language_version: python3.10 - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v3.1.0" + rev: "v4.0.0-alpha.8" hooks: - id: prettier - repo: https://github.com/pre-commit/pygrep-hooks From d155b606ef99633a61bcb88c8e77c3ce8e833f93 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 7 Jan 2025 01:42:14 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../examples/examples_bayer.ipynb | 33 +++++++++++-------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/colour_demosaicing/examples/examples_bayer.ipynb b/colour_demosaicing/examples/examples_bayer.ipynb index 3968524..1f6df02 100644 --- a/colour_demosaicing/examples/examples_bayer.ipynb +++ b/colour_demosaicing/examples/examples_bayer.ipynb @@ -56,7 +56,8 @@ " demosaicing_CFA_Bayer_bilinear,\n", " demosaicing_CFA_Bayer_Malvar2004,\n", " demosaicing_CFA_Bayer_Menon2007,\n", - " mosaicing_CFA_Bayer)\n", + " mosaicing_CFA_Bayer,\n", + ")\n", "\n", "colour.plotting.colour_style()\n", "\n", @@ -92,11 +93,13 @@ ], "source": [ "LIGHTHOUSE_IMAGE = colour.io.read_image(\n", - " os.path.join(ROOT_RESOURCES_EXAMPLES, 'bayer', 'Lighthouse.exr'))\n", + " os.path.join(ROOT_RESOURCES_EXAMPLES, \"bayer\", \"Lighthouse.exr\")\n", + ")\n", "\n", "colour.plotting.plot_image(\n", " colour.cctf_encoding(LIGHTHOUSE_IMAGE),\n", - " text_kwargs={'text': 'Lighthouse - R914108 - Kodak'});" + " text_kwargs={\"text\": \"Lighthouse - R914108 - Kodak\"},\n", + ");" ] }, { @@ -140,12 +143,13 @@ "CFA = mosaicing_CFA_Bayer(LIGHTHOUSE_IMAGE)\n", "\n", "colour.plotting.plot_image(\n", - " colour.cctf_encoding(CFA),\n", - " text_kwargs={'text': 'Lighthouse - CFA - RGGB'})\n", + " colour.cctf_encoding(CFA), text_kwargs={\"text\": \"Lighthouse - CFA - RGGB\"}\n", + ")\n", "\n", "colour.plotting.plot_image(\n", - " colour.cctf_encoding(mosaicing_CFA_Bayer(LIGHTHOUSE_IMAGE, 'BGGR')), \n", - " text_kwargs={'text': 'Lighthouse - CFA - BGGR'});" + " colour.cctf_encoding(mosaicing_CFA_Bayer(LIGHTHOUSE_IMAGE, \"BGGR\")),\n", + " text_kwargs={\"text\": \"Lighthouse - CFA - BGGR\"},\n", + ");" ] }, { @@ -175,8 +179,9 @@ ], "source": [ "colour.plotting.plot_image(\n", - " colour.cctf_encoding(demosaicing_CFA_Bayer_bilinear(CFA)), \n", - " text_kwargs={'text': 'Lighthouse - Demosaicing - Bilinear'});" + " colour.cctf_encoding(demosaicing_CFA_Bayer_bilinear(CFA)),\n", + " text_kwargs={\"text\": \"Lighthouse - Demosaicing - Bilinear\"},\n", + ");" ] }, { @@ -208,8 +213,9 @@ ], "source": [ "colour.plotting.plot_image(\n", - " colour.cctf_encoding(demosaicing_CFA_Bayer_Malvar2004(CFA)), \n", - " text_kwargs={'text': 'Lighthouse - Demosaicing - Malvar (2004)'});" + " colour.cctf_encoding(demosaicing_CFA_Bayer_Malvar2004(CFA)),\n", + " text_kwargs={\"text\": \"Lighthouse - Demosaicing - Malvar (2004)\"},\n", + ");" ] }, { @@ -239,8 +245,9 @@ ], "source": [ "colour.plotting.plot_image(\n", - " colour.cctf_encoding(demosaicing_CFA_Bayer_Menon2007(CFA)), \n", - " text_kwargs={'text': 'Lighthouse - Demosaicing - Menon (2007)'});" + " colour.cctf_encoding(demosaicing_CFA_Bayer_Menon2007(CFA)),\n", + " text_kwargs={\"text\": \"Lighthouse - Demosaicing - Menon (2007)\"},\n", + ");" ] } ],