Merge pull request #1123 from codeflash-ai/ruffmypyupdates

Updating mypy, ruff, libcst
This commit is contained in:
RD 2024-10-24 03:13:02 -07:00 committed by GitHub
commit 136ce5ee18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 25 deletions

View file

@ -20,7 +20,7 @@ python = "^3.9"
unidiff = ">=0.7.4"
pytest = ">=7.0.0"
gitpython = ">=3.1.31"
libcst = ">=1.0.1"
libcst = ">=1.5.0"
jedi = ">=0.19.1"
tiktoken = ">=0.3.2"
timeout-decorator = ">=0.5.0"
@ -46,10 +46,8 @@ optional = true
[tool.poetry.group.dev.dependencies]
ipython = "^8.12.0"
mypy = "^1.11.2"
ruff = ">=0.5.0,<0.6.0"
ruff-lsp = ">=0.0.53,<0.0.55"
mypy = ">=1.13"
ruff = ">=0.7.0"
[tool.poetry.build]
script = "codeflash/update_license_version.py"
@ -58,12 +56,14 @@ script = "codeflash/update_license_version.py"
codeflash = "codeflash.main:main"
[tool.mypy]
show_error_code_links = true
pretty = true
show_absolute_path = true
show_column_numbers = true
show_error_context = true
show_error_end = true
strict = true
warn_unreachable = true
install_types = true
plugins = [
"returns.contrib.mypy.returns_plugin",
"pydantic.mypy"
@ -83,9 +83,13 @@ init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[tool.ruff]
line-length = 120
fix = true
show-fixes = true
[tool.ruff.lint]
select = ["ALL"]
unfixable = ["F401"]
ignore = ["S101", "FIX002", "ANN101"]
[tool.ruff.lint.flake8-type-checking]
@ -99,14 +103,9 @@ classmethod-decorators = [
"pydantic.validator",
]
[tool.ruff.lint.per-file-ignores]
"**/*" = ["D102"]
[tool.ruff]
line-length = 110
[tool.ruff.format]
docstring-code-format = true
skip-magic-trailing-comma = true
[tool.poetry-dynamic-versioning]
enable = true

View file

@ -13,7 +13,7 @@ readme = "README.md"
python = "^3.12.1"
django = "^5.0.6"
django-ninja = "^1.1.0"
pydantic = "^2.7.2"
pydantic = ">=2.9.0"
openai = "^1.30.5"
python-dotenv = "^1.0.1"
dj-database-url = "^2.2.0"
@ -22,14 +22,13 @@ black = "^24.4.2"
gunicorn = "^22.0.0"
uvicorn = "^0.30.0"
jedi = "^0.19.0"
libcst = "^1.4.0"
libcst = "^1.5.0"
posthog = "^3.5.0"
pytest = "^8.2.1"
sentry-sdk = { extras = ["django"], version = "^2.3.1" }
isort = "^5.13.2"
gitpython = "^3.1.43"
ruff = "^0.5.0"
ruff-lsp = "^0.0.54"
ruff = ">=0.7.0"
returns = "^0.23.0"
pytest-django = "^4.8.0"
nltk = "^3.9.1"
@ -39,15 +38,17 @@ optional = true
[tool.poetry.group.dev.dependencies]
ipython = "^8.12.0"
mypy = "^1.9.0"
mypy = ">=1.13"
[tool.mypy]
show_error_code_links = true
pretty = true
show_absolute_path = true
show_column_numbers = true
show_error_context = true
show_error_end = true
strict = true
warn_unreachable = true
install_types = true
plugins = [
"returns.contrib.mypy.returns_plugin",
"pydantic.mypy"
@ -69,7 +70,6 @@ warn_required_dynamic_aliases = true
[tool.ruff.lint]
select = ["ALL"]
unfixable = ["F401"]
ignore = ["S101", "FIX002", "ANN101"]
[tool.ruff.lint.flake8-type-checking]
@ -84,14 +84,13 @@ classmethod-decorators = [
]
[tool.ruff]
line-length = 110
line-length = 120
fix = true
show-fixes = true
[tool.ruff.format]
docstring-code-format = true
[tool.black]
line-length = 110
target-version = ['py312']
skip-magic-trailing-comma = true
[tool.codeflash]
module-root = "."