From af1bb8c1fb1838700e356f072dd632c769042af1 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Wed, 27 Dec 2023 07:37:15 +0100 Subject: [PATCH 1/2] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Bump=20libcst=20to=20>?= =?UTF-8?q?=3D0.4.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 377f430..7ef6a3e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,7 @@ classifiers = [ "Programming Language :: Python :: Implementation :: PyPy", "Framework :: Pydantic", ] -dependencies = ["typer>=0.7.0", "libcst", "rich", "typing_extensions"] +dependencies = ["typer>=0.7.0", "libcst>=0.4.2", "rich", "typing_extensions"] [project.urls] Documentation = "https://github.com/pydantic/bump-pydantic#readme" @@ -69,8 +69,20 @@ skip-string-normalization = true target-version = ["py38"] [tool.ruff] -extend-select = ['A', 'B', 'C4', 'C90', 'I', 'Q', 'PERF', 'PT', 'RUF100', 'UP', 'W'] -ignore = ['B008'] # That's how Typer works. +extend-select = [ + 'A', + 'B', + 'C4', + 'C90', + 'I', + 'Q', + 'PERF', + 'PT', + 'RUF100', + 'UP', + 'W', +] +ignore = ['B008'] # That's how Typer works. isort = { known-first-party = ['bump_pydantic', 'tests'] } line-length = 120 mccabe = { max-complexity = 14 } @@ -79,9 +91,9 @@ target-version = 'py38' [tool.pytest.ini_options] xfail_strict = true filterwarnings = [ - # Turn warnings that aren't filtered into exceptions - "error", - "ignore::pytest.PytestUnraisableExceptionWarning" + # Turn warnings that aren't filtered into exceptions + "error", + "ignore::pytest.PytestUnraisableExceptionWarning", ] [tool.coverage.run] From ba26014ae84afb9bb57808b7623a0bb21ce20676 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Wed, 27 Dec 2023 07:42:57 +0100 Subject: [PATCH 2/2] Fix linter --- pyproject.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7ef6a3e..0f3802e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,15 +37,14 @@ path = "bump_pydantic/__init__.py" [tool.hatch.envs.default] dependencies = [ - "black>=23.1.0", + "black>=23.12.1", "coverage[toml]>=6.5", - "mypy>=1.0.0", + "mypy==1.8.0", "pydantic", - "pytest-xdist", "pytest", "rich", "rtoml", - "ruff>=0.0.243", + "ruff==0.1.9", ] [tool.hatch.envs.default.scripts] @@ -74,6 +73,7 @@ extend-select = [ 'B', 'C4', 'C90', + 'E501', 'I', 'Q', 'PERF',