Skip to content

Fix accidentaly messed up return type default_location getter #7

Fix accidentaly messed up return type default_location getter

Fix accidentaly messed up return type default_location getter #7

Triggered via pull request February 3, 2024 14:04
Status Success
Total duration 1m 32s
Artifacts

checks.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Ruff (F401): cozy/architecture/event_sender.py#L3
cozy/architecture/event_sender.py:3:8: F401 `gi` imported but unused
Ruff (SIM102): cozy/control/artwork_cache.py#L58
cozy/control/artwork_cache.py:58:9: SIM102 Use a single `if` statement instead of nested `if` statements
Ruff (F841): cozy/control/artwork_cache.py#L101
cozy/control/artwork_cache.py:101:33: F841 Local variable `e` is assigned to but never used
Ruff (SIM108): cozy/control/artwork_cache.py#L127
cozy/control/artwork_cache.py:127:13: SIM108 Use ternary operator `pixbuf = GdkPixbuf.Pixbuf.new_from_file(path) if path else None` instead of `if`-`else`-block
Ruff (SIM108): cozy/control/db.py#L95
cozy/control/db.py:95:9: SIM108 Use ternary operator `track = get_tracks(book)[0] if len(track_items) > 0 else None` instead of `if`-`else`-block
Ruff (F841): cozy/control/db_updater.py#L243
cozy/control/db_updater.py:243:25: F841 Local variable `e` is assigned to but never used
Ruff (F841): cozy/control/filesystem_monitor.py#L46
cozy/control/filesystem_monitor.py:46:9: F841 Local variable `external_storage` is assigned to but never used
Ruff (PIE790): cozy/control/filesystem_monitor.py#L62
cozy/control/filesystem_monitor.py:62:9: PIE790 Unnecessary `pass` statement
Ruff (F401): cozy/control/offline_cache.py#L9
cozy/control/offline_cache.py:9:8: F401 `cozy.ui` imported but unused
Ruff (E712): cozy/control/offline_cache.py#L122
cozy/control/offline_cache.py:122:78: E712 Comparison to `True` should be `cond is True` or `if cond:`