codeflash/pyproject.toml

119 lines
2.7 KiB
TOML
Raw Normal View History

[tool]
[tool.poetry]
name = "codeflash"
version = "0.0.0" # Determined by poetry-dynamic-versioning during `poetry build`
description = "Client for codeflash.ai - automatic code performance optimization, powered by AI"
license = "BSL-1.1"
2024-01-13 01:26:51 +00:00
authors = ["CodeFlash Inc. <contact@codeflash.ai>"]
homepage = "https://codeflash.ai"
readme = "README.md"
packages = [
{ include = "codeflash" },
]
keywords = ["codeflash", "performance", "optimization", "ai", "code", "machine learning", "LLM"]
[tool.poetry.dependencies]
python = ">=3.9,<4.0"
2024-01-31 03:29:36 +00:00
unidiff = ">=0.7.4"
pytest = ">=7.0.0"
gitpython = ">=3.1.31"
libcst = ">=1.0.1"
jedi = ">=0.19.0"
2024-01-31 04:35:57 +00:00
tiktoken = ">=0.3.2"
2024-01-31 03:29:36 +00:00
timeout-decorator = ">=0.5.0"
pytest-timeout = ">=2.1.0"
tomlkit = ">=0.11.7"
unittest-xml-reporting = ">=3.2.0"
junitparser = ">=3.1.0"
pydantic = ">=1.10.1"
black = ">=22.3.0"
2024-01-31 19:33:31 +00:00
humanize = ">=4.0.0"
posthog = ">=3.0.0"
click = ">=8.1.0"
2024-01-31 19:33:31 +00:00
inquirer = ">=3.0.0"
2024-03-01 01:59:34 +00:00
sentry-sdk = "^1.40.6"
2024-02-23 18:29:17 +00:00
parameterized = ">=0.9.0"
returns = "^0.22.0"
2024-03-28 19:04:37 +00:00
isort = "5.13.2"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
ipython = "^8.12.0"
mypy = "^1.9.0"
[tool.poetry.build]
script = "codeflash/update_license_version.py"
[tool.poetry.scripts]
codeflash = "codeflash.main:main"
[tool.mypy]
2024-03-06 06:56:10 +00:00
disallow_any_decorated = true
disallow_any_explicit = true
disallow_any_expr = true
disallow_any_unimported = true
disallow_subclassing_any = true
pretty = true
show_absolute_path = true
show_column_numbers = true
show_error_context = true
strict = true
verbosity = 0
2024-03-06 06:56:10 +00:00
warn_unreachable = true
plugins = [
"pydantic.mypy"
]
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[tool.black]
line-length = 100
target-version = ['py312']
[tool.ruff.lint.flake8-type-checking]
strict = true
runtime-evaluated-base-classes = ["pydantic.BaseModel"]
runtime-evaluated-decorators = ["pydantic.validate_call"]
[tool.ruff.lint.pep8-naming]
classmethod-decorators = [
# Allow Pydantic's `@validator` decorator to trigger class method treatment.
"pydantic.validator",
]
[tool.poetry-dynamic-versioning]
enable = true
style = "pep440"
vcs = "git"
[tool.poetry-dynamic-versioning.substitution]
files = ["codeflash/version.py"]
[tool.poetry-dynamic-versioning.files."codeflash/version.py"]
persistent-substitution = true
initial-content = """
# These version placeholders will be replaced by poetry-dynamic-versioning during `poetry build`.
__version__ = "0.0.0"
__version_tuple__ = (0, 0, 0)
"""
[tool.codeflash]
2024-01-25 20:28:16 +00:00
module-root = "codeflash"
tests-root = "tests"
test-framework = "unittest"
ignore-paths = []
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.2.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"