|
[build-system]
|
|
requires = ["setuptools>=61.0", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "pyr"
|
|
version = "0.1.0"
|
|
description = "Python reimplementation of R Vibe Tool - AI-assisted development CLI"
|
|
readme = "README.md"
|
|
authors = [{name = "retoor", email = "retoor@molodetz.nl"}]
|
|
license = {text = "MIT"}
|
|
keywords = ["ai", "cli", "development", "assistant", "llm"]
|
|
classifiers = [
|
|
"Development Status :: 4 - Beta",
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Operating System :: POSIX :: Linux",
|
|
"Programming Language :: Python :: 3.8",
|
|
"Programming Language :: Python :: 3.9",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
]
|
|
requires-python = ">=3.8"
|
|
dependencies = [
|
|
"click>=8.0.0",
|
|
"rich>=13.0.0",
|
|
"httpx>=0.24.0",
|
|
"pydantic>=2.0.0",
|
|
"pydantic-settings>=2.0.0",
|
|
"python-dotenv>=1.0.0",
|
|
"sqlalchemy>=2.0.0",
|
|
"alembic>=1.12.0",
|
|
"prompt-toolkit>=3.0.0",
|
|
"pygments>=2.15.0",
|
|
"aiosqlite>=0.19.0",
|
|
"openai>=1.0.0",
|
|
"anthropic>=0.25.0",
|
|
"beautifulsoup4>=4.12.0",
|
|
"requests>=2.31.0",
|
|
"whoosh>=2.7.4",
|
|
"typer>=0.9.0",
|
|
"asyncio-mqtt>=0.16.0",
|
|
"uvloop>=0.19.0",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=7.4.0",
|
|
"pytest-asyncio>=0.21.0",
|
|
"pytest-cov>=4.1.0",
|
|
"black>=23.7.0",
|
|
"isort>=5.12.0",
|
|
"mypy>=1.5.0",
|
|
"flake8>=6.0.0",
|
|
"pre-commit>=3.3.0",
|
|
]
|
|
docs = [
|
|
"mkdocs>=1.5.0",
|
|
"mkdocs-material>=9.1.0",
|
|
"mkdocstrings[python]>=0.22.0",
|
|
]
|
|
|
|
[project.urls]
|
|
Homepage = "https://github.com/retoor/pyr"
|
|
Documentation = "https://github.com/retoor/pyr#readme"
|
|
Repository = "https://github.com/retoor/pyr.git"
|
|
Issues = "https://github.com/retoor/pyr/issues"
|
|
|
|
[project.scripts]
|
|
pyr = "pyr.cli:main"
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["src"]
|
|
|
|
[tool.setuptools.package-data]
|
|
"pyr" = ["*.txt", "*.json", "*.yaml", "*.yml"]
|
|
|
|
[tool.black]
|
|
line-length = 88
|
|
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
|
|
include = '\.pyi?$'
|
|
extend-exclude = '''
|
|
/(
|
|
# directories
|
|
\.eggs
|
|
| \.git
|
|
| \.hg
|
|
| \.mypy_cache
|
|
| \.tox
|
|
| \.venv
|
|
| build
|
|
| dist
|
|
)/
|
|
'''
|
|
|
|
[tool.isort]
|
|
profile = "black"
|
|
multi_line_output = 3
|
|
line_length = 88
|
|
known_first_party = ["pyr"]
|
|
|
|
[tool.mypy]
|
|
python_version = "3.8"
|
|
warn_return_any = true
|
|
warn_unused_configs = true
|
|
disallow_untyped_defs = true
|
|
ignore_missing_imports = true
|
|
|
|
[tool.pytest.ini_options]
|
|
minversion = "7.0"
|
|
addopts = "-ra -q --strict-markers --cov=pyr --cov-report=term-missing"
|
|
testpaths = ["tests"]
|
|
markers = [
|
|
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
|
|
"integration: marks tests as integration tests",
|
|
"unit: marks tests as unit tests",
|
|
]
|
|
asyncio_mode = "auto"
|
|
|
|
[tool.coverage.run]
|
|
source = ["src"]
|
|
omit = [
|
|
"*/tests/*",
|
|
"*/test_*.py",
|
|
"*/__pycache__/*",
|
|
]
|
|
|
|
[tool.coverage.report]
|
|
exclude_lines = [
|
|
"pragma: no cover",
|
|
"def __repr__",
|
|
"if self.debug:",
|
|
"if settings.DEBUG",
|
|
"raise AssertionError",
|
|
"raise NotImplementedError",
|
|
"if 0:",
|
|
"if __name__ == .__main__.:",
|
|
"class .*\\bProtocol\\):",
|
|
"@(abc\\.)?abstractmethod",
|
|
]
|