Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
azuline committed Sep 21, 2024
1 parent c72808e commit 4e8792e
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 17 deletions.
1 change: 0 additions & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import pytest
from click.testing import CliRunner

from rose.cache import CACHE_SCHEMA_PATH, process_string_for_fts, update_cache
from rose.common import VERSION
from rose.config import Config, VirtualFSConfig
Expand Down
2 changes: 1 addition & 1 deletion rose-cli/rose_cli/__main__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import sys

import click

from rose import RoseExpectedError

from rose_cli.cli import CliExpectedError, cli


Expand Down
2 changes: 1 addition & 1 deletion rose-cli/rose_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from pathlib import Path

import click

from rose import (
VERSION,
Action,
Expand Down Expand Up @@ -51,6 +50,7 @@
toggle_release_new,
update_cache,
)

from rose_cli.dump import (
dump_all_artists,
dump_all_collages,
Expand Down
2 changes: 1 addition & 1 deletion rose-cli/rose_cli/cli_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

import pytest
from click.testing import CliRunner
from rose import AudioTags, Config
from rose_vfs.virtualfs_test import start_virtual_fs

from rose import AudioTags, Config
from rose_cli.cli import (
Context,
InvalidReleaseArgError,
Expand Down
2 changes: 1 addition & 1 deletion rose-cli/rose_cli/dump_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from typing import Any

import pytest

from rose import Config, Matcher

from rose_cli.dump import (
dump_all_artists,
dump_all_collages,
Expand Down
1 change: 0 additions & 1 deletion rose-cli/rose_cli/templates.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import click

from rose import (
Config,
PathTemplate,
Expand Down
2 changes: 1 addition & 1 deletion rose-cli/rose_cli/templates_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import click
from click.testing import CliRunner

from rose import Config

from rose_cli.templates import (
preview_path_templates,
)
Expand Down
1 change: 1 addition & 0 deletions rose-vfs/rose_vfs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from rose import initialize_logging

from rose_vfs.virtualfs import mount_virtualfs, unmount_virtualfs

__all__ = [
Expand Down
1 change: 0 additions & 1 deletion rose-vfs/rose_vfs/virtualfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
from typing import Any, Generic, Literal, TypeVar

import llfuse

from rose import (
SUPPORTED_AUDIO_EXTENSIONS,
AudioTags,
Expand Down
2 changes: 1 addition & 1 deletion rose-vfs/rose_vfs/virtualfs_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
from pathlib import Path

import pytest
from rose import AudioTags, Config

from conftest import retry_for_sec
from rose import AudioTags, Config
from rose_vfs.virtualfs import ALL_TRACKS, mount_virtualfs, unmount_virtualfs

R1_VNAME = "Techno Man & Bass Man - 2023. Release 1"
Expand Down
1 change: 1 addition & 0 deletions rose-watch/rose_watch/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from rose import initialize_logging

from rose_watch.watcher import start_watchdog

__all__ = [
Expand Down
13 changes: 6 additions & 7 deletions rose-watch/rose_watch/watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@
from queue import Empty, Queue
from typing import Literal

from watchdog.events import (
FileSystemEvent,
FileSystemEventHandler,
FileSystemMovedEvent,
)
from watchdog.observers import Observer

from rose import (
Config,
update_cache_evict_nonexistent_collages,
Expand All @@ -45,6 +38,12 @@
update_cache_for_playlists,
update_cache_for_releases,
)
from watchdog.events import (
FileSystemEvent,
FileSystemEventHandler,
FileSystemMovedEvent,
)
from watchdog.observers import Observer

logger = logging.getLogger(__name__)

Expand Down
3 changes: 2 additions & 1 deletion rose-watch/rose_watch/watcher_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
from contextlib import contextmanager
from multiprocessing import Process

from conftest import TEST_COLLAGE_1, TEST_PLAYLIST_1, TEST_RELEASE_2, TEST_RELEASE_3, retry_for_sec
from rose import Config
from rose.cache import connect

from conftest import TEST_COLLAGE_1, TEST_PLAYLIST_1, TEST_RELEASE_2, TEST_RELEASE_3, retry_for_sec
from rose_watch.watcher import start_watchdog


Expand Down

0 comments on commit 4e8792e

Please sign in to comment.