From f802ed25b7979f19ba8031f882c303bbbb341d63 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sat, 31 Jan 2026 15:24:58 +0000 Subject: [PATCH] Initial upload: Local Code Assistant with CI/CD workflow --- pyproject.toml | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..fa4f89d --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,85 @@ +[build-system] +requires = ["setuptools>=61.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "local-code-assistant" +version = "0.1.0" +description = "A CLI tool for running local AI code assistance without sending code to external APIs" +readme = "README.md" +requires-python = ">=3.9" +license = {text = "MIT"} +authors = [ + {name = "Local Code Assistant Contributors"} +] +keywords = ["cli", "ai", "code-assistant", "ollama", "local-llm"] +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Topic :: Software Development :: Tools :: Code Generators", + "Topic :: Software Development :: Libraries :: Python Modules" +] +dependencies = [ + "click>=8.1.7", + "rich>=13.7.0", + "ollama>=0.1.41", + "pyperclip>=1.8.2", + "pyyaml>=6.0.1", + "python-dotenv>=1.0.0", +] + +[project.optional-dependencies] +dev = [ + "pytest>=7.4.0", + "pytest-cov>=4.1.0", + "pytest-asyncio>=0.21.0", + "black>=23.0.0", + "ruff>=0.1.0", + "mypy>=1.5.0", + "types-pyperclip", +] + +[project.scripts] +local-code-assistant = "local_code_assistant.cli:main" +lca = "local_code_assistant.cli:main" + +[project.urls] +Homepage = "https://github.com/local-code-assistant/local-code-assistant" +Repository = "https://github.com/local-code-assistant/local-code-assistant" +Issues = "https://github.com/local-code-assistant/local-code-assistant/issues" + +[tool.setuptools.packages.find] +where = ["."] +include = ["local_code_assistant*"] + +[tool.pytest.ini_options] +testpaths = ["tests"] +python_files = ["test_*.py"] +python_functions = ["test_*"] +addopts = "-v --tb=short" + +[tool.black] +line-length = 100 +target-version = ["py39", "py310", "py311", "py312"] +include = '\\.pyi?$' + +[tool.ruff] +line-length = 100 +target-version = "py39" +select = ["E", "F", "W", "C90", "I", "N", "UP", "B", "C4"] +ignore = ["E501"] + +[tool.ruff.per-file-ignores] +"__init__.py" = ["F401"] + +[tool.mypy] +python_version = "3.9" +warn_return_any = true +warn_unused_configs = true +disallow_untyped_defs = false \ No newline at end of file