Skip to content

Commit

Permalink
Update ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmpr committed Aug 17, 2024
1 parent fd0c573 commit 3153755
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- name: Install ruff
run: |
python -m pip install --upgrade pip ruff==0.5.5
python -m pip install --upgrade pip ruff==0.6.1
- name: Run ruff check
run: ruff check --output-format=github
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ testpaths = "tests"
line-length = 120
indent-width = 4
target-version = "py38"
required-version = ">=0.5.5"
required-version = ">=0.6.1"
output-format = "concise"
src = ["src", "tests"]

Expand Down
16 changes: 8 additions & 8 deletions tests/test_catalog_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def test_try_find_update_should_return_update_when_first_resolver_cant_resolve_u
first_resolver.resolve.assert_called_once_with(library, metadata_mock)
second_resolver.resolve.assert_called_once_with(library, metadata_mock)

@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_get_library_updates_should_return_no_updates_when_there_is_no_library_repositories(self):
library: Library = EntityFactory.create_library()
repository: Repository = EntityFactory.create_repository()
Expand All @@ -119,7 +119,7 @@ async def test_get_library_updates_should_return_no_updates_when_there_is_no_lib
assert actual_updates == []
resolver_mock.resolve.assert_not_called()

@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_get_library_updates_should_get_metadata_for_libraries_and_return_not_none_updates(self):
library: Library = EntityFactory.create_library()
repository: Repository = EntityFactory.create_repository()
Expand Down Expand Up @@ -152,7 +152,7 @@ async def test_get_library_updates_should_get_metadata_for_libraries_and_return_
verbose=False,
)

@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_get_plugin_updates_should_return_no_updates_when_there_is_no_plugin_repositories(self):
plugin: Plugin = EntityFactory.create_plugin()
repository: Repository = EntityFactory.create_repository()
Expand All @@ -166,7 +166,7 @@ async def test_get_plugin_updates_should_return_no_updates_when_there_is_no_plug
assert actual_updates == []
resolver_mock.resolve.assert_not_called()

@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_get_plugin_updates_should_get_metadata_for_plugins_and_return_not_none_updates(self):
plugin: Plugin = EntityFactory.create_plugin()
repository: Repository = EntityFactory.create_repository()
Expand Down Expand Up @@ -199,7 +199,7 @@ async def test_get_plugin_updates_should_get_metadata_for_plugins_and_return_not
verbose=False,
)

@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_get_updates_should_return_updates_for_libraries_and_plugins(self):
library: Library = EntityFactory.create_library()
plugin: Plugin = EntityFactory.create_plugin()
Expand Down Expand Up @@ -247,7 +247,7 @@ async def test_get_updates_should_return_updates_for_libraries_and_plugins(self)
]
assert load_metadata_mock.call_args_list == expected_load_metadata_calls

@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_get_artifact_updates_should_return_artifact_updates_from_correct_repositories(self):
library: Library = EntityFactory.create_library()
plugin: Plugin = EntityFactory.create_plugin()
Expand Down Expand Up @@ -296,7 +296,7 @@ async def test_get_artifact_updates_should_return_artifact_updates_from_correct_
]
assert load_metadata_mock.call_args_list == expected_load_metadata_calls

@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_should_return_empty_list_when_there_are_no_libraries_and_plugins_in_loaded_catalog(self):
expected_updates: List[ArtifactUpdate] = []
repository: Repository = EntityFactory.create_repository()
Expand All @@ -310,7 +310,7 @@ async def test_should_return_empty_list_when_there_are_no_libraries_and_plugins_

assert actual_updates == expected_updates

@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_should_return_artifact_updates_when_there_are_libraries_and_plugins_in_loaded_catalog(self):
library: Library = EntityFactory.create_library()
plugin: Plugin = EntityFactory.create_plugin()
Expand Down

0 comments on commit 3153755

Please sign in to comment.