Skip to content

Commit

Permalink
⬆️ Bump libcst to >=0.4.2 (#140)
Browse files Browse the repository at this point in the history
* ⬆️ Bump libcst to >=0.4.2

* Fix linter
  • Loading branch information
Kludex committed Dec 27, 2023
1 parent 677f617 commit d5b7026
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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]
Expand All @@ -69,8 +68,21 @@ 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',
'E501',
'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 }
Expand All @@ -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]
Expand Down

0 comments on commit d5b7026

Please sign in to comment.