From 5d98da59897f794651059b74306852919d880b1d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 28 Feb 2023 05:58:47 +0000 Subject: [PATCH 1/2] Bump ruff from 0.0.251 to 0.0.253 in /requirements Bumps [ruff](https://github.com/charliermarsh/ruff) from 0.0.251 to 0.0.253. - [Release notes](https://github.com/charliermarsh/ruff/releases) - [Changelog](https://github.com/charliermarsh/ruff/blob/main/BREAKING_CHANGES.md) - [Commits](https://github.com/charliermarsh/ruff/compare/v0.0.251...v0.0.253) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements/dev-requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev-requirements.txt b/requirements/dev-requirements.txt index 9ecae806f..1e2b5eb12 100644 --- a/requirements/dev-requirements.txt +++ b/requirements/dev-requirements.txt @@ -21,7 +21,7 @@ pytest-cov==4.0.0 # Measure code coverage pytest-envfiles==0.1.0 # Use files for environment variables for tests pytest==7.2.1 # Test runners requests-mock-flask==2022.4.3 -ruff==0.0.251 +ruff==0.0.253 sphinx-autodoc-typehints==1.22 sphinx-prompt==1.5.0 sphinx_paramlinks==0.5.4 From 1d58f7ad67acb60d49f00cb739845609b0cdd876 Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Tue, 28 Feb 2023 09:33:51 +0000 Subject: [PATCH 2/2] Fix a ruff issue --- ci/custom_linters.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/custom_linters.py b/ci/custom_linters.py index 4f59a4ccf..8c4aa06a0 100644 --- a/ci/custom_linters.py +++ b/ci/custom_linters.py @@ -60,13 +60,13 @@ def test_tests_collected_once() -> None: ci_patterns = _ci_patterns() tests_to_patterns: dict[str, set[str]] = {} for pattern in ci_patterns: - pattern = "tests/mock_vws/" + pattern - tests = _tests_from_pattern(ci_pattern=pattern) + pattern_in_dir = "tests/mock_vws/" + pattern + tests = _tests_from_pattern(ci_pattern=pattern_in_dir) for test in tests: if test in tests_to_patterns: - tests_to_patterns[test].add(pattern) + tests_to_patterns[test].add(pattern_in_dir) else: - tests_to_patterns[test] = {pattern} + tests_to_patterns[test] = {pattern_in_dir} for test_name, patterns in tests_to_patterns.items(): message = (