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 = ( 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