-
-
Notifications
You must be signed in to change notification settings - Fork 6
Replace isort with ruff check and black with ruff format #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,11 +21,13 @@ | |
| import wave | ||
| from typing import Optional, Tuple | ||
|
|
||
| from ._soundswallower import Config # noqa: F401 | ||
| from ._soundswallower import Decoder # noqa: F401 | ||
| from ._soundswallower import Endpointer # noqa: F401 | ||
| from ._soundswallower import FsgModel # noqa: F401 | ||
| from ._soundswallower import Vad # noqa: F401 | ||
| from ._soundswallower import ( # noqa: F401 | ||
|
||
| Config, | ||
| Decoder, | ||
| Endpointer, | ||
| FsgModel, | ||
| Vad, | ||
| ) | ||
|
|
||
|
|
||
| def get_model_path(subpath: Optional[str] = None) -> str: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much better, thank you! We can reduce noise by reverting these lines:
While the end result is effectively the same, things that are fixed by
ruff-formatdon't get reported as errors byruffin this order, but they do in the other order.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please read https://docs.astral.sh/ruff/integrations/#pre-commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough. I guess it's a bit of a chicken and egg problem: ruff-format fixes things ruff complains about, but also stuff ruff --fix introduces, I guess I can live with the duplicate warnings.