From b5e82456c3274a795195201866344585e2dec294 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 2 Jul 2024 10:45:28 +0100 Subject: [PATCH] [CI] pre-commit autoupdate (#560) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: huong-li-nguyen --- .pre-commit-config.yaml | 10 ++-- ...g_li_nguyen_pre_commit_ci_update_config.md | 48 +++++++++++++++++++ .../models/_components/form/_form_utils.py | 1 - 3 files changed, 53 insertions(+), 6 deletions(-) create mode 100644 vizro-core/changelog.d/20240702_091610_huong_li_nguyen_pre_commit_ci_update_config.md diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 35ff4cfab..72627f160 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -49,7 +49,7 @@ repos: args: [--autofix] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.7 + rev: v0.5.0 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] @@ -60,14 +60,14 @@ repos: - id: black - repo: https://github.com/PyCQA/bandit - rev: 1.7.8 + rev: 1.7.9 hooks: - id: bandit args: [-c, pyproject.toml, -ll] additional_dependencies: ["bandit[toml]"] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.0 + rev: v1.10.1 hooks: - id: mypy files: ^vizro-core/src/ @@ -79,7 +79,7 @@ repos: - pydantic==1.10.14 - repo: https://github.com/gitleaks/gitleaks - rev: v8.18.3 + rev: v8.18.4 hooks: - id: gitleaks name: gitleaks (protect) @@ -103,7 +103,7 @@ repos: args: ["--fix"] - repo: https://github.com/errata-ai/vale - rev: v3.4.2 + rev: v3.6.0 hooks: - id: vale args: [--config=.vale/.vale.ini] diff --git a/vizro-core/changelog.d/20240702_091610_huong_li_nguyen_pre_commit_ci_update_config.md b/vizro-core/changelog.d/20240702_091610_huong_li_nguyen_pre_commit_ci_update_config.md new file mode 100644 index 000000000..f1f65e73c --- /dev/null +++ b/vizro-core/changelog.d/20240702_091610_huong_li_nguyen_pre_commit_ci_update_config.md @@ -0,0 +1,48 @@ + + + + + + + + + diff --git a/vizro-core/src/vizro/models/_components/form/_form_utils.py b/vizro-core/src/vizro/models/_components/form/_form_utils.py index c216a5e38..2b86cb341 100644 --- a/vizro-core/src/vizro/models/_components/form/_form_utils.py +++ b/vizro-core/src/vizro/models/_components/form/_form_utils.py @@ -109,7 +109,6 @@ def set_default_marks(cls, marks, values): def validate_date_picker_range(cls, range, values): - # if range and values.get("value") and (isinstance(values["value"], (date, str)) or len(values["value"]) == 1): raise ValueError("Please set range=False if providing single date value.")