-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
140 lines (129 loc) · 4.6 KB
/
Copy pathpyproject.toml
File metadata and controls
140 lines (129 loc) · 4.6 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
[build-system]
requires = ["setuptools>=67.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "comms-toolkit"
version = "3.1.0"
description = "A research-informed analysis engine for text-based communication."
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.9"
keywords = [
"nlp",
"communication",
"behavioral-analysis",
"pattern-detection",
"text-analysis",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Text Processing :: Linguistic",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
# --------------------------------------------------------------------------
# Core dependencies — kept minimal for the analysis engine
# --------------------------------------------------------------------------
dependencies = [
"defusedxml>=0.7.1",
"structlog>=24.1.0",
"colorama>=0.4.6", # For Windows terminal colors
]
# --------------------------------------------------------------------------
# Optional dependency groups — install with: pip install comms-toolkit[dev]
# --------------------------------------------------------------------------
[project.optional-dependencies]
# For local development: pip install -e ".[dev]"
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"ruff>=0.4.0",
"mypy>=1.0",
]
# For Signal message extraction: pip install comms-toolkit[signal]
signal = [
"pycryptodome>=3.19.0",
# pysqlcipher3 requires C compiler + sqlcipher headers — install manually
]
# For API dashboard: pip install comms-toolkit[api]
api = [
"fastapi>=0.110.0",
"uvicorn[standard]>=0.29.0",
]
# For future ML features: pip install comms-toolkit[ml]
ml = [
"scikit-learn>=1.3.0",
"pandas>=2.0.0",
"joblib>=1.3.0",
]
# --------------------------------------------------------------------------
# CLI entry point — after install, user can run: comms-analyze --help
# --------------------------------------------------------------------------
[project.scripts]
comms-analyze = "engine.cli:main"
[project.urls]
Homepage = "https://github.com/beautifulplanet/Communication-Analysis-Toolkit"
Documentation = "https://github.com/beautifulplanet/Communication-Analysis-Toolkit#readme"
Repository = "https://github.com/beautifulplanet/Communication-Analysis-Toolkit"
Issues = "https://github.com/beautifulplanet/Communication-Analysis-Toolkit/issues"
# --------------------------------------------------------------------------
# Setuptools — tell it where to find our packages
# --------------------------------------------------------------------------
[tool.setuptools.packages.find]
include = ["engine*", "api*", "active*"]
exclude = ["tests*", "old_unused*", "build_tools*", "tools*"]
# --------------------------------------------------------------------------
# Ruff — fast Python linter + formatter (replaces flake8, isort, black)
# --------------------------------------------------------------------------
[tool.ruff]
line-length = 100
target-version = "py39"
exclude = ["tools", "active", "build", "dist"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"I", # isort (import sorting)
"UP", # pyupgrade (modernize syntax)
"B", # bugbear
"SIM", # simplify
"PT", # pytest-style
"A", # builtins
"PIE", # misc
"RET", # return
"SLF", # self
"RUF", # ruff specific
]
ignore = [
"E501", # line too long — we handle this with line-length setting
]
[tool.ruff.lint.isort]
known-first-party = ["engine"]
# --------------------------------------------------------------------------
# Pytest — test runner configuration
# --------------------------------------------------------------------------
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
asyncio_mode = "auto"
pythonpath = ["."]
# --------------------------------------------------------------------------
# Mypy — static type checking
# --------------------------------------------------------------------------
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false # start permissive, tighten later
ignore_missing_imports = true