From 344182aeb4e1f38d1352a76daa5f9f7bdd963f6c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 19 Nov 2024 00:06:20 +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: - https://gitlab.com/pycqa/flake8 → https://github.com/PyCQA/flake8 - [github.com/PyCQA/flake8: 3.7.8 → 7.1.1](https://github.com/PyCQA/flake8/compare/3.7.8...7.1.1) - https://github.com/pre-commit/mirrors-yapf → https://github.com/google/yapf - [github.com/google/yapf: v0.23.0 → v0.43.0](https://github.com/google/yapf/compare/v0.23.0...v0.43.0) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 95ecce1..dd412c0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,10 +1,10 @@ repos: -- repo: https://gitlab.com/pycqa/flake8 - rev: 3.7.8 +- repo: https://github.com/PyCQA/flake8 + rev: 7.1.1 hooks: - id: flake8 exclude: examples -- repo: https://github.com/pre-commit/mirrors-yapf - rev: v0.23.0 +- repo: https://github.com/google/yapf + rev: v0.43.0 hooks: - id: yapf From 8bcc796117c47b70df76884a4367534c53fd7607 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 19 Nov 2024 00:07:43 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 62ca82c..8428269 100644 --- a/app.py +++ b/app.py @@ -63,8 +63,9 @@ def single_sd_colour_rendition_report(): sd = sds[list(sds.keys())[0]] if sd.shape.interval not in [1, 5, 10, 20]: sd = sd.align( - colour.SpectralShape( - start=sd.shape.start, end=sd.shape.end, interval=1)) + colour.SpectralShape(start=sd.shape.start, + end=sd.shape.end, + interval=1)) figure, _axes = colour.plotting.plot_single_sd_colour_rendition_report( sd,