From 851ad9b60bd052e781604110215805bc561562e8 Mon Sep 17 00:00:00 2001 From: chris48s Date: Thu, 10 Oct 2024 17:09:46 +0100 Subject: [PATCH] move ruff to prod requirements --- requirements/base.in | 5 +++++ requirements/base.txt | 21 +++++++++++++++++++++ requirements/constraints.txt | 2 +- requirements/testing.in | 1 - requirements/testing.txt | 1 - 5 files changed, 27 insertions(+), 3 deletions(-) diff --git a/requirements/base.in b/requirements/base.in index c3c0d60c0..9f5e427af 100644 --- a/requirements/base.in +++ b/requirements/base.in @@ -29,6 +29,11 @@ uk-geo-utils freezegun polars +# ruff needs to be in the production requirements +# because https://github.com/DemocracyClub/UK-Polling-Stations/blob/7323740ecade04f8e883b18fb3363e6f6ec37ff6/polling_stations/apps/data_importers/import_script.py#L4-L14 +# is used when we create a PR after a file upload is received +ruff==0.4.6 + https://github.com/DemocracyClub/design-system/archive/refs/tags/0.4.6.zip https://github.com/DemocracyClub/dc_django_utils/archive/refs/tags/7.0.1.zip https://github.com/DemocracyClub/dc_logging/archive/refs/tags/1.1.0.zip diff --git a/requirements/base.txt b/requirements/base.txt index c834b5537..db6a7c84e 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -941,6 +941,27 @@ rtree==1.3.0 \ # via # -c requirements/constraints.txt # -r requirements/base.in +ruff==0.4.6 \ + --hash=sha256:04a80acfc862e0e1630c8b738e70dcca03f350bad9e106968a8108379e12b31f \ + --hash=sha256:0cf5cc02d3ae52dfb0c8a946eb7a1d6ffe4d91846ffc8ce388baa8f627e3bd50 \ + --hash=sha256:1fa8561489fadf483ffbb091ea94b9c39a00ed63efacd426aae2f197a45e67fc \ + --hash=sha256:1ff930d6e05f444090a0139e4e13e1e2e1f02bd51bb4547734823c760c621e79 \ + --hash=sha256:3a6a0a4f4b5f54fff7c860010ab3dd81425445e37d35701a965c0248819dde7a \ + --hash=sha256:3f9ced5cbb7510fd7525448eeb204e0a22cabb6e99a3cb160272262817d49786 \ + --hash=sha256:4d5b914818d8047270308fe3e85d9d7f4a31ec86c6475c9f418fbd1624d198e0 \ + --hash=sha256:4f02284335c766678778475e7698b7ab83abaf2f9ff0554a07b6f28df3b5c259 \ + --hash=sha256:602ebd7ad909eab6e7da65d3c091547781bb06f5f826974a53dbe563d357e53c \ + --hash=sha256:735a16407a1a8f58e4c5b913ad6102722e80b562dd17acb88887685ff6f20cf6 \ + --hash=sha256:9018bf59b3aa8ad4fba2b1dc0299a6e4e60a4c3bc62bbeaea222679865453062 \ + --hash=sha256:a769ae07ac74ff1a019d6bd529426427c3e30d75bdf1e08bb3d46ac8f417326a \ + --hash=sha256:a797a87da50603f71e6d0765282098245aca6e3b94b7c17473115167d8dfb0b7 \ + --hash=sha256:be47700ecb004dfa3fd4dcdddf7322d4e632de3c06cd05329d69c45c0280e618 \ + --hash=sha256:ea3424793c29906407e3cf417f28fc33f689dacbbadfb52b7e9a809dd535dcef \ + --hash=sha256:ef995583a038cd4a7edf1422c9e19118e2511b8ba0b015861b4abd26ec5367c5 \ + --hash=sha256:f13410aabd3b5776f9c5699f42b37a3a348d65498c4310589bc6e5c548dc8a2f + # via + # -c requirements/constraints.txt + # -r requirements/base.in s3transfer==0.10.1 \ --hash=sha256:5683916b4c724f799e600f41dd9e10a9ff19871bf87623cc8f491cb4f5fa0a19 \ --hash=sha256:ceb252b11bcf87080fb7850a224fb6e05c8a776bab8f2b64b7f25b969464839d diff --git a/requirements/constraints.txt b/requirements/constraints.txt index 62095406d..7f78930f5 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -1566,7 +1566,7 @@ ruff==0.4.6 \ --hash=sha256:ef995583a038cd4a7edf1422c9e19118e2511b8ba0b015861b4abd26ec5367c5 \ --hash=sha256:f13410aabd3b5776f9c5699f42b37a3a348d65498c4310589bc6e5c548dc8a2f # via - # -r requirements/testing.in + # -r requirements/base.in # pytest-ruff s3transfer==0.10.1 \ --hash=sha256:5683916b4c724f799e600f41dd9e10a9ff19871bf87623cc8f491cb4f5fa0a19 \ diff --git a/requirements/testing.in b/requirements/testing.in index 2806c0d83..e66cf36a7 100644 --- a/requirements/testing.in +++ b/requirements/testing.in @@ -14,4 +14,3 @@ playwright pytest-playwright pytest-ruff pytest-vcr -ruff diff --git a/requirements/testing.txt b/requirements/testing.txt index dec94bbdb..eb9a3f0ee 100644 --- a/requirements/testing.txt +++ b/requirements/testing.txt @@ -553,7 +553,6 @@ ruff==0.4.6 \ --hash=sha256:f13410aabd3b5776f9c5699f42b37a3a348d65498c4310589bc6e5c548dc8a2f # via # -c requirements/constraints.txt - # -r requirements/testing.in # pytest-ruff selenium==4.20.0 \ --hash=sha256:0bd564ee166980d419a8aaf4ac00289bc152afcf2eadca5efe8c8e36711853fd \