From fd024f9eb5bac64a351396b399bdf4dbdbedf24a 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 20:25:42 +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/kynan/nbstripout: 0.7.1 → 0.8.1](https://github.com/kynan/nbstripout/compare/0.7.1...0.8.1) - [github.com/executablebooks/mdformat: 0.7.17 → 0.7.22](https://github.com/executablebooks/mdformat/compare/0.7.17...0.7.22) - [github.com/executablebooks/mdformat: 0.7.17 → 0.7.22](https://github.com/executablebooks/mdformat/compare/0.7.17...0.7.22) - [github.com/codespell-project/codespell: v2.3.0 → v2.4.1](https://github.com/codespell-project/codespell/compare/v2.3.0...v2.4.1) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c1fb113e..40189e38 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -37,7 +37,7 @@ repos: hooks: - id: yamllint - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.9 + rev: v0.9.4 hooks: # Run the linter. - id: ruff @@ -48,28 +48,28 @@ repos: - id: ruff-format types_or: [python, jupyter] - repo: https://github.com/kynan/nbstripout - rev: 0.7.1 + rev: 0.8.1 hooks: - id: nbstripout args: - --extra-keys - metadata.kernelspec metadata.language_info.version metadata.vscode - repo: https://github.com/executablebooks/mdformat - rev: 0.7.17 + rev: 0.7.22 hooks: - id: mdformat additional_dependencies: [mdformat-gfm, mdformat-gfm-alerts, mdformat-ruff] args: [--wrap, '88'] files: (README\.md) - repo: https://github.com/executablebooks/mdformat - rev: 0.7.17 + rev: 0.7.22 hooks: - id: mdformat additional_dependencies: [mdformat-myst, mdformat-ruff] args: [--wrap, '88'] files: (docs_template/.) - repo: https://github.com/codespell-project/codespell - rev: v2.3.0 + rev: v2.4.1 hooks: - id: codespell - repo: local From 9a75f149e831f2c5a6c09e9234305345f2849014 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 20:26:04 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/template_project/analysis/task_analysis_template.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/template_project/analysis/task_analysis_template.py b/src/template_project/analysis/task_analysis_template.py index c9677f99..d741df94 100644 --- a/src/template_project/analysis/task_analysis_template.py +++ b/src/template_project/analysis/task_analysis_template.py @@ -13,8 +13,7 @@ # single formula. formula = ( # logit functions in Python and R expect the binary outcome to be numerical - "current_smoker_numerical ~ " - "gender + marital_status + age + highest_qualification" + "current_smoker_numerical ~ gender + marital_status + age + highest_qualification" )