From a544a9a42c48944530f3057edb78440f439df1ef Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 21 Oct 2024 13:02:28 -0400 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#103) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.6.8 → v0.6.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.8...v0.6.9) * Upgrading pre-commit dependency and add one more thing to try to get rid of the flakiness --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Marcelo Lotif Co-authored-by: Marcelo Lotif --- .pre-commit-config.yaml | 5 +++-- package.json | 2 +- poetry.lock | 10 +++++----- pyproject.toml | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e4d32d7..8c05890 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 # Use the ref you want to point at + rev: v5.0.0 # Use the ref you want to point at hooks: - id: trailing-whitespace - id: check-ast @@ -16,7 +16,7 @@ repos: - id: check-toml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.6.8' + rev: 'v0.6.9' hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] @@ -47,6 +47,7 @@ repos: language: node additional_dependencies: - typescript + exclude: ^[^.]+$|\.(?!(tsx)$)([^.]+$) # excludes everything but .tsx files - repo: local hooks: diff --git a/package.json b/package.json index 372d67d..828bf98 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "prod": "concurrently \"npm run next-dev\" \"npm run fastapi-prod\"", "build": "next build", "start": "next start", - "lint": "next lint florist **/*.tsx", + "lint": "next lint florist", "prettier": "prettier florist/app florist/tests/unit/app --write", "unit-test": "jest --coverage florist/tests/unit/", "integration-test": "jest --coverage florist/tests/integration/" diff --git a/poetry.lock b/poetry.lock index 19a0fd2..b976417 100644 --- a/poetry.lock +++ b/poetry.lock @@ -3610,13 +3610,13 @@ files = [ [[package]] name = "pre-commit" -version = "2.21.0" +version = "4.0.1" description = "A framework for managing and maintaining multi-language pre-commit hooks." optional = false -python-versions = ">=3.7" +python-versions = ">=3.9" files = [ - {file = "pre_commit-2.21.0-py2.py3-none-any.whl", hash = "sha256:e2f91727039fc39a92f58a588a25b87f936de6567eed4f0e673e0507edc75bad"}, - {file = "pre_commit-2.21.0.tar.gz", hash = "sha256:31ef31af7e474a8d8995027fefdfcf509b5c913ff31f2015b4ec4beb26a6f658"}, + {file = "pre_commit-4.0.1-py2.py3-none-any.whl", hash = "sha256:efde913840816312445dc98787724647c65473daefe420785f885e8ed9a06878"}, + {file = "pre_commit-4.0.1.tar.gz", hash = "sha256:80905ac375958c0444c65e9cebebd948b3cdb518f335a091a670a89d652139d2"}, ] [package.dependencies] @@ -6259,4 +6259,4 @@ test = ["big-O", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-it [metadata] lock-version = "2.0" python-versions = ">=3.9.0,<3.11" -content-hash = "09a4191122fc887d9469ed793525e6148d74898357f0f7444d3d6474381ceb3f" +content-hash = "3bcefd4d7dd0c2cc14e49ddadef69db17e3973d420014aa3a24164552781c8c5" diff --git a/pyproject.toml b/pyproject.toml index af21c4e..8307c8a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,7 @@ optional = true [tool.poetry.group.test.dependencies] pytest = "^7.1.1" -pre-commit = "^2.17.0" +pre-commit = "^4.0.1" pytest-cov = "^3.0.0" codecov = "^2.1.13" mypy = "^1.7.0"