2025-11-04 05:17:27 +01:00
|
|
|
[build-system]
|
|
|
|
|
requires = ["setuptools>=61.0"]
|
|
|
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
|
|
|
|
|
|
[project]
|
|
|
|
|
name = "pr-assistant"
|
|
|
|
|
version = "1.0.0"
|
|
|
|
|
description = "Professional CLI AI assistant with autonomous execution capabilities"
|
|
|
|
|
readme = "README.md"
|
|
|
|
|
requires-python = ">=3.8"
|
|
|
|
|
license = {text = "MIT"}
|
|
|
|
|
keywords = ["ai", "assistant", "cli", "automation", "openrouter", "autonomous"]
|
|
|
|
|
authors = [
|
|
|
|
|
{name = "retoor", email = "retoor@example.com"}
|
|
|
|
|
]
|
|
|
|
|
classifiers = [
|
|
|
|
|
"Development Status :: 4 - Beta",
|
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
|
"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",
|
|
|
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
|
|
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[project.optional-dependencies]
|
|
|
|
|
dev = [
|
2025-11-04 08:20:03 +01:00
|
|
|
"pytest",
|
|
|
|
|
"pytest-cov",
|
|
|
|
|
"black",
|
|
|
|
|
"flake8",
|
|
|
|
|
"mypy",
|
|
|
|
|
"pre-commit",
|
2025-11-04 05:17:27 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[project.scripts]
|
|
|
|
|
pr = "pr.__main__:main"
|
|
|
|
|
rp = "pr.__main__:main"
|
|
|
|
|
rpe = "pr.editor:main"
|
|
|
|
|
|
|
|
|
|
[project.urls]
|
2025-11-04 08:20:03 +01:00
|
|
|
Homepage = "https://retoor.molodetz.nl/retoor/rp"
|
|
|
|
|
Documentation = "https://retoor.molodetz.nl/retoor/rp#readme"
|
|
|
|
|
Repository = "https://retoor.molodetz.nl/retoor/rp"
|
|
|
|
|
"Bug Tracker" = "https://retoor.molodetz.nl/retoor/rp/issues"
|
2025-11-04 05:17:27 +01:00
|
|
|
|
|
|
|
|
[tool.setuptools.packages.find]
|
|
|
|
|
where = ["."]
|
|
|
|
|
include = ["pr*"]
|
|
|
|
|
exclude = ["tests*"]
|
|
|
|
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
|
|
|
testpaths = ["tests"]
|
|
|
|
|
python_files = ["test_*.py"]
|
|
|
|
|
python_classes = ["Test*"]
|
|
|
|
|
python_functions = ["test_*"]
|
|
|
|
|
addopts = "-v --cov=pr --cov-report=term-missing --cov-report=html"
|
|
|
|
|
|
|
|
|
|
[tool.black]
|
|
|
|
|
line-length = 100
|
|
|
|
|
target-version = ['py38', 'py39', 'py310', 'py311']
|
|
|
|
|
include = '\.pyi?$'
|
|
|
|
|
extend-exclude = '''
|
|
|
|
|
/(
|
|
|
|
|
__pycache__
|
|
|
|
|
| \.git
|
|
|
|
|
| \.mypy_cache
|
|
|
|
|
| \.pytest_cache
|
|
|
|
|
| \.venv
|
|
|
|
|
| build
|
|
|
|
|
| dist
|
|
|
|
|
)/
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
[tool.mypy]
|
|
|
|
|
python_version = "3.8"
|
|
|
|
|
warn_return_any = true
|
|
|
|
|
warn_unused_configs = true
|
|
|
|
|
disallow_untyped_defs = false
|
|
|
|
|
disallow_incomplete_defs = false
|
|
|
|
|
check_untyped_defs = true
|
|
|
|
|
no_implicit_optional = true
|
|
|
|
|
warn_redundant_casts = true
|
|
|
|
|
warn_unused_ignores = true
|
|
|
|
|
|
|
|
|
|
[tool.coverage.run]
|
|
|
|
|
source = ["pr"]
|
|
|
|
|
omit = ["*/tests/*", "*/__pycache__/*"]
|
|
|
|
|
|
|
|
|
|
[tool.coverage.report]
|
|
|
|
|
exclude_lines = [
|
|
|
|
|
"pragma: no cover",
|
|
|
|
|
"def __repr__",
|
|
|
|
|
"raise AssertionError",
|
|
|
|
|
"raise NotImplementedError",
|
|
|
|
|
"if __name__ == .__main__.:",
|
|
|
|
|
"if TYPE_CHECKING:",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[tool.isort]
|
|
|
|
|
profile = "black"
|
|
|
|
|
line_length = 100
|
|
|
|
|
multi_line_output = 3
|
|
|
|
|
include_trailing_comma = true
|
|
|
|
|
force_grid_wrap = 0
|
|
|
|
|
use_parentheses = true
|
|
|
|
|
ensure_newline_before_comments = true
|
|
|
|
|
|
|
|
|
|
[tool.bandit]
|
|
|
|
|
exclude_dirs = ["tests", "venv", ".venv"]
|
|
|
|
|
skips = ["B101"]
|