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 00fca17 commit 1410858
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 16 deletions.
1 change: 1 addition & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

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 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,6 +15,7 @@
from pathlib import Path

import click

from rose import (
VERSION,
Action,
Expand Down Expand Up @@ -50,7 +51,6 @@
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 import Config, Matcher
from rose_cli.dump import (
dump_all_artists,
dump_all_collages,
Expand Down
1 change: 1 addition & 0 deletions rose-cli/rose_cli/templates.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
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 import Config
from rose_cli.templates import (
preview_path_templates,
)
Expand Down
1 change: 0 additions & 1 deletion rose-vfs/rose_vfs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from rose import initialize_logging

from rose_vfs.virtualfs import mount_virtualfs, unmount_virtualfs

__all__ = [
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: 0 additions & 1 deletion rose-watch/rose_watch/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from rose import initialize_logging

from rose_watch.watcher import start_watchdog

__all__ = [
Expand Down
13 changes: 7 additions & 6 deletions rose-watch/rose_watch/watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
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 @@ -38,12 +45,6 @@
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: 1 addition & 2 deletions rose-watch/rose_watch/watcher_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
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 1410858

Please sign in to comment.