2024-03-05 00:15:12 +00:00
|
|
|
[tool]
|
2023-12-30 02:37:49 +00:00
|
|
|
[tool.poetry]
|
|
|
|
|
name = "codeflash"
|
|
|
|
|
version = "0.0.0" # Determined by poetry-dynamic-versioning during `poetry build`
|
2024-03-21 20:39:36 +00:00
|
|
|
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"
|
2023-12-30 02:37:49 +00:00
|
|
|
readme = "README.md"
|
|
|
|
|
packages = [
|
|
|
|
|
{ include = "codeflash" },
|
|
|
|
|
]
|
2024-03-21 20:39:36 +00:00
|
|
|
keywords = ["codeflash", "performance", "optimization", "ai", "code", "machine learning", "LLM"]
|
2023-12-30 02:37:49 +00:00
|
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
2024-03-08 00:33:18 +00:00
|
|
|
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"
|
2024-02-01 01:43:01 +00:00
|
|
|
junitparser = ">=3.1.0"
|
2024-02-06 03:57:08 +00:00
|
|
|
pydantic = ">=1.10.1"
|
2024-02-01 01:43:01 +00:00
|
|
|
black = ">=22.3.0"
|
2024-01-31 19:33:31 +00:00
|
|
|
humanize = ">=4.0.0"
|
|
|
|
|
posthog = ">=3.0.0"
|
2024-02-01 01:43:01 +00:00
|
|
|
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"
|
2024-03-08 00:33:18 +00:00
|
|
|
returns = "^0.22.0"
|
2024-03-28 19:04:37 +00:00
|
|
|
isort = "5.13.2"
|
2023-12-30 02:37:49 +00:00
|
|
|
|
|
|
|
|
[tool.poetry.group.dev]
|
|
|
|
|
optional = true
|
|
|
|
|
|
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
|
|
|
ipython = "^8.12.0"
|
2024-03-26 06:59:29 +00:00
|
|
|
mypy = "^1.9.0"
|
2023-12-30 02:37:49 +00:00
|
|
|
|
2024-03-05 00:15:12 +00:00
|
|
|
|
|
|
|
|
[tool.poetry.build]
|
|
|
|
|
script = "codeflash/update_license_version.py"
|
|
|
|
|
|
|
|
|
|
[tool.poetry.scripts]
|
|
|
|
|
codeflash = "codeflash.main:main"
|
|
|
|
|
|
|
|
|
|
|
2023-12-30 02:37:49 +00:00
|
|
|
[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
|
2024-03-24 02:25:58 +00:00
|
|
|
verbosity = 0
|
2024-03-06 06:56:10 +00:00
|
|
|
warn_unreachable = true
|
2023-12-30 02:37:49 +00:00
|
|
|
plugins = [
|
|
|
|
|
"pydantic.mypy"
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[tool.pydantic-mypy]
|
|
|
|
|
init_forbid_extra = true
|
|
|
|
|
init_typed = true
|
|
|
|
|
warn_required_dynamic_aliases = true
|
|
|
|
|
|
|
|
|
|
[tool.black]
|
|
|
|
|
line-length = 100
|
2024-01-24 23:51:17 +00:00
|
|
|
target-version = ['py312']
|
2023-12-30 02:37:49 +00:00
|
|
|
|
2024-03-24 01:59:26 +00:00
|
|
|
[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",
|
|
|
|
|
]
|
|
|
|
|
|
2023-12-30 02:37:49 +00:00
|
|
|
[tool.poetry-dynamic-versioning]
|
|
|
|
|
enable = true
|
|
|
|
|
style = "pep440"
|
|
|
|
|
vcs = "git"
|
|
|
|
|
|
2024-01-12 01:58:05 +00:00
|
|
|
[tool.poetry-dynamic-versioning.substitution]
|
|
|
|
|
files = ["codeflash/version.py"]
|
|
|
|
|
|
2023-12-30 02:37:49 +00:00
|
|
|
[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"
|
2024-01-25 20:51:51 +00:00
|
|
|
tests-root = "tests"
|
2024-03-08 00:33:18 +00:00
|
|
|
test-framework = "unittest"
|
2024-01-25 03:39:08 +00:00
|
|
|
ignore-paths = []
|
2024-03-07 20:24:47 +00:00
|
|
|
|
2024-03-05 00:15:12 +00:00
|
|
|
|
|
|
|
|
[build-system]
|
|
|
|
|
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.2.0,<2.0.0"]
|
|
|
|
|
build-backend = "poetry_dynamic_versioning.backend"
|
|
|
|
|
|