From 980b104321531d8cc0068d359672fc01b4aacc2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Ignacio=20Torres?= Date: Sun, 12 Dec 2021 14:36:36 -0400 Subject: [PATCH] style: flake8 fixes --- gutenberg2kindle/gutenberg.py | 4 +++- tests/test_cli.py | 9 ++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gutenberg2kindle/gutenberg.py b/gutenberg2kindle/gutenberg.py index 384de4c..7c1235f 100644 --- a/gutenberg2kindle/gutenberg.py +++ b/gutenberg2kindle/gutenberg.py @@ -5,7 +5,9 @@ import requests -GUTENBERG_BOOK_BASE_URL: Final[str] = "https://www.gutenberg.org/ebooks/{book_id}.kindle" +GUTENBERG_BOOK_BASE_URL: Final[str] = ( + "https://www.gutenberg.org/ebooks/{book_id}.kindle" +) def download_book(book_id: int) -> Optional[BytesIO]: diff --git a/tests/test_cli.py b/tests/test_cli.py index a389adc..db0d0d5 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -39,7 +39,14 @@ def test_main_config_handlers( # get-config with name monkeypatch.setattr(cli, "get_config", lambda _: "test-value") with patch.object( - sys, "argv", ["gutenberg2kindle", "get-config", "--name", "smtp_server"] + sys, + "argv", + [ + "gutenberg2kindle", + "get-config", + "--name", + "smtp_server", + ], ): cli.main() out, _ = capfd.readouterr()