From 7dcb6b5f9130c5b7cfcf32abbcbf225ff6858f39 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2024 21:19:03 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.1.0 → 24.10.0](https://github.com/psf/black/compare/23.1.0...24.10.0) - [github.com/pycqa/flake8: 6.0.0 → 7.1.1](https://github.com/pycqa/flake8/compare/6.0.0...7.1.1) - [github.com/pycqa/isort: 5.12.0 → 5.13.2](https://github.com/pycqa/isort/compare/5.12.0...5.13.2) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6adb6eb..0441cce 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,11 +1,11 @@ repos: - repo: https://github.com/psf/black - rev: 23.1.0 + rev: 24.10.0 hooks: - id: black args: [--line-length=119] - repo: https://github.com/pycqa/flake8 - rev: 6.0.0 + rev: 7.1.1 hooks: - id: flake8 args: @@ -13,7 +13,7 @@ repos: - --exclude=*/migrations/*,node_modules - --ignore=F405, W503, E203, E231 - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort args: From a0d1b3ff0e4bf587b3113d8c3e0532eeef87602a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2024 21:19:11 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- nightingale/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nightingale/cli.py b/nightingale/cli.py index 319f9e9..5c7d848 100644 --- a/nightingale/cli.py +++ b/nightingale/cli.py @@ -123,9 +123,9 @@ def run( "codelists": codelists_file or config_data["mapping"].get("codelists"), "ocid_prefix": ocid_prefix or config_data["mapping"]["ocid_prefix"], "selector": selector_content, - "force_publish": force_publish - if force_publish is not None - else config_data["mapping"].get("force_publish", False), + "force_publish": ( + force_publish if force_publish is not None else config_data["mapping"].get("force_publish", False) + ), } config_data["publishing"] = { "publisher": publisher or config_data["publishing"]["publisher"],