-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
107 lines (99 loc) · 3.54 KB
/
Copy pathpyproject.toml
File metadata and controls
107 lines (99 loc) · 3.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "codelens"
version = "8.2.0"
description = "Live Codebase Reference Intelligence — 12 commands for AI-powered code analysis, security auditing, and quality scoring"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.8"
authors = [
{name = "Wolfvin"},
]
keywords = [
"code-analysis", "reference-tracking", "dead-code", "duplicate-detection",
"frontend", "backend", "rust", "html", "css", "javascript", "typescript",
"tsx", "jsx", "react", "vue", "svelte", "tailwind", "tree-sitter", "ast-parsing", "call-graph", "class-tracking", "impact-analysis",
"circular-dependency", "missing-references", "code-search",
"data-flow", "taint-analysis", "code-smell", "side-effects",
"security-analysis", "secret-detection", "accessibility", "a11y",
"vulnerability-scan", "performance-hints", "css-analysis",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"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",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
"Topic :: Utilities",
]
dependencies = [
"tree-sitter>=0.21.0",
]
[project.optional-dependencies]
grammars = [
"tree-sitter-html",
"tree-sitter-css",
"tree-sitter-javascript",
"tree-sitter-typescript",
"tree-sitter-rust",
"tree-sitter-python",
]
watch = [
"watchdog",
]
# Issue #46: Semgrep-compat YAML rule engine — Phase 1.
# PyYAML is already required transitively but listed for clarity.
rules = [
"PyYAML>=6.0",
]
# Issue #48: Native LSP 3.17 server via `codelens lsp`.
# pygls + lsprotocol provide the JSON-RPC + LSP type bindings.
lsp = [
"pygls>=2.0",
"lsprotocol>=2024.0",
"tree-sitter-python>=0.23",
]
dev = [
"pytest>=7.0",
"pytest-cov",
]
all = [
"codelens[grammars,watch,rules,lsp,dev]",
]
# Issue #54 Phase 1: entry point for ``pip install codelens`` / ``pipx install codelens``.
# The codelens package (codelens/__init__.py) is a thin wrapper that delegates
# to scripts/codelens.py — the legacy implementation.
[project.scripts]
codelens = "codelens:main"
# Install both the new codelens/ package AND the legacy scripts/ directory
# (which contains the actual implementation). The scripts/ dir has no
# __init__.py so its subdirs (commands/, formatters/, etc.) are found as
# packages and its top-level .py files become importable modules.
[tool.setuptools.packages.find]
where = [".", "scripts"]
include = ["codelens", "codelens.*", "commands", "commands.*", "formatters", "formatters.*", "parsers", "parsers.*", "plugins", "plugins.*"]
# Note: scripts/codelens.py is auto-discovered as a top-level py-module
# named "codelens" which would shadow the codelens/ package. We handle
# this in setup.py by explicitly excluding it — see setup.py for details.
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
[tool.ruff]
line-length = 120
target-version = "py38"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "A", "C4"]
ignore = ["E501"]