From 6c33b393439d18bc899bf4fa4b5afaefde49ca9d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Aug 2023 16:38:40 +0000 Subject: [PATCH 1/2] Bump ruff from 0.0.285 to 0.0.286 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.285 to 0.0.286. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.0.285...v0.0.286) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 517317c9..24725fb7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -238,7 +238,7 @@ dev = [ "pyright==1.1.324", "pyroma==4.2", "pytest-cov==4.1.0", - "ruff==0.0.285", + "ruff==0.0.286", "sphinx-autodoc-typehints==1.24.0", "sphinx-autofixture==0.4.0", "sphinx-prompt==1.5.0", From 2a508788e15aa05e37120e0cace74644fd9b23b5 Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Mon, 28 Aug 2023 17:58:27 +0100 Subject: [PATCH 2/2] Remove unnecessary range starts --- src/vws_test_fixtures/images.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vws_test_fixtures/images.py b/src/vws_test_fixtures/images.py index e5d394b7..75dc4313 100644 --- a/src/vws_test_fixtures/images.py +++ b/src/vws_test_fixtures/images.py @@ -46,13 +46,13 @@ def _make_image_file( for row_index in range(height): for column_index in range(width): if color_space == "L": - grey = random.choice(seq=range(0, 255)) + grey = random.choice(seq=range(255)) image.putpixel(xy=(column_index, row_index), value=grey) else: assert color_space in ("CMYK", "RGB") - red = random.choice(seq=range(0, 255)) - green = random.choice(seq=range(0, 255)) - blue = random.choice(seq=range(0, 255)) + red = random.choice(seq=range(255)) + green = random.choice(seq=range(255)) + blue = random.choice(seq=range(255)) image.putpixel( xy=(column_index, row_index), value=(red, green, blue),