From a1c2a6e7a7f7e2ef2fa499d75d215bd03d8371f0 Mon Sep 17 00:00:00 2001 From: Graham Hukill Date: Tue, 11 Jul 2023 15:17:25 -0400 Subject: [PATCH 1/2] ignore Jetbrains IDE project folder Why these changes are being introduced: * add Pycharm (Jetbrain IDE) project folder to .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index d37c967..1c51a4e 100644 --- a/.gitignore +++ b/.gitignore @@ -155,3 +155,4 @@ cython_debug/ .DS_Store output/ .vscode/ +.idea/ \ No newline at end of file From d729c542fe9d23acf14e6b1e911119e993f9faf0 Mon Sep 17 00:00:00 2001 From: Graham Hukill Date: Tue, 11 Jul 2023 15:24:51 -0400 Subject: [PATCH 2/2] update click decorator order Why these changes are being introduced: * in click 8.1.4 the order of the decorators causes a mypy linting error How this addresses that need: * changing the order establishes the right chain of type hints moving through the decorators to the eventual function they augment --- my_app/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/my_app/cli.py b/my_app/cli.py index 55e54a5..3c2525f 100644 --- a/my_app/cli.py +++ b/my_app/cli.py @@ -9,10 +9,10 @@ logger = logging.getLogger(__name__) -@click.command() @click.option( "-v", "--verbose", is_flag=True, help="Pass to log at debug level instead of info" ) +@click.command() def main(verbose: bool) -> None: start_time = perf_counter() root_logger = logging.getLogger()