From e883e8c85ca0adf5e6173317d345e02d5cd74269 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 22:15:17 +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/astral-sh/ruff-pre-commit: v0.6.9 → v0.9.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.9...v0.9.4) - [github.com/psf/black-pre-commit-mirror: 24.10.0 → 25.1.0](https://github.com/psf/black-pre-commit-mirror/compare/24.10.0...25.1.0) - [github.com/jsh9/pydoclint: 0.5.9 → 0.6.0](https://github.com/jsh9/pydoclint/compare/0.5.9...0.6.0) - [github.com/igorshubovych/markdownlint-cli: v0.42.0 → v0.44.0](https://github.com/igorshubovych/markdownlint-cli/compare/v0.42.0...v0.44.0) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b95142d..4d60e9e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: - id: check-yaml exclude: .gitlab-ci.yml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.9 + rev: v0.9.4 hooks: - id: ruff args: @@ -23,7 +23,7 @@ repos: - --target-version=py310 - --extend-select=UP,I - repo: https://github.com/psf/black-pre-commit-mirror - rev: 24.10.0 + rev: 25.1.0 hooks: - id: black args: @@ -43,7 +43,7 @@ repos: additional_dependencies: - tomli - repo: https://github.com/jsh9/pydoclint - rev: 0.5.9 + rev: 0.6.0 hooks: - id: pydoclint args: @@ -52,7 +52,7 @@ repos: - -athd=False - -crt=False - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.42.0 + rev: v0.44.0 hooks: - id: markdownlint args: From 93410dc7a59532a8dc04e7d6019e332033eb9625 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 22:15:41 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .pre-commit-config.yaml | 2 +- lours/utils/column_booleanizer.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4d60e9e..a5d2266 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -64,5 +64,5 @@ repos: hooks: - id: blackdoc additional_dependencies: - - black==24.10.0 + - black==25.1.0 - id: blackdoc-autoupdate-black diff --git a/lours/utils/column_booleanizer.py b/lours/utils/column_booleanizer.py index 4e6e3ac..807664b 100644 --- a/lours/utils/column_booleanizer.py +++ b/lours/utils/column_booleanizer.py @@ -77,8 +77,8 @@ def is_true(iterable, value) -> bool: booleanized_column_name = f"{column_name}{separator}{v}" input_df = input_df.assign( **{ - booleanized_column_name: input_df[column_name].apply( - partial(is_true, value=v) + booleanized_column_name: ( + input_df[column_name].apply(partial(is_true, value=v)) ) } )