-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
175 lines (161 loc) · 4.92 KB
/
pyproject.toml
File metadata and controls
175 lines (161 loc) · 4.92 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "primr"
version = "1.16.0"
description = "Turn any company or organization URL into a strategic intelligence brief. Adaptive scraping + AI-powered research and synthesis."
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.11"
authors = [
{name = "Nick Seal", email = "nick@pueo.io"}
]
keywords = ["ai", "research", "company", "intelligence", "gemini", "grok", "report", "analysis", "scraping"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Office/Business",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Text Processing :: Markup :: Markdown",
]
dependencies = [
"google-genai>=1.55.0",
"requests",
"beautifulsoup4",
"fpdf",
"python-docx",
"pymupdf",
"pandas",
"openpyxl",
"pytesseract",
"markdown",
"colorama",
"rich>=13.0.0",
"python-dotenv",
"httpx[http2]",
"playwright",
"docx2pdf",
"pyyaml",
"curl_cffi",
"DrissionPage",
"ddgs>=9.0.0",
"mcp>=1.0.0",
"starlette>=0.27.0",
"uvicorn>=0.20.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-mock>=3.10.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.0.0",
"hypothesis>=6.0.0",
"mypy>=1.0.0",
"ruff>=0.15.5,<0.16.0",
]
api = [
"fastapi>=0.100.0",
"pydantic>=2.0.0",
"uvicorn>=0.20.0",
]
fast = [
"openai>=1.0.0",
]
a2a = [
"a2a-sdk[http-server]>=0.3.20,<0.4.0",
]
security = [
"bandit>=1.7.0",
]
[project.scripts]
primr = "primr.core.cli:main"
primr-mcp = "primr.mcp_server.cli:main"
primr-a2a = "primr.a2a.cli:main"
[project.urls]
Homepage = "https://github.com/blisspixel/primr"
Documentation = "https://github.com/blisspixel/primr#readme"
Repository = "https://github.com/blisspixel/primr"
"Bug Tracker" = "https://github.com/blisspixel/primr/issues"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
primr = ["py.typed"]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
ignore_missing_imports = true
disable_error_code = ["import-untyped"] # Don't require stubs for all libraries
# Enable stricter checks - code has been improved to support these
check_untyped_defs = true
disallow_untyped_defs = false # Enable incrementally per-module
no_implicit_optional = true
strict_optional = true
# Per-module overrides for stricter checking on well-typed modules
[[tool.mypy.overrides]]
module = [
"primr.types",
"primr.utils.errors",
"primr.utils.circuit_breaker",
"primr.agentic.hooks",
"primr.agentic.errors",
]
disallow_untyped_defs = true
disallow_incomplete_defs = true
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"RUF", # ruff-specific rules
"PIE", # flake8-pie
"PT", # flake8-pytest-style
"TCH", # flake8-type-checking
]
ignore = [
"E501", # Line too long
"E402", # Module level import not at top (intentional lazy imports)
"UP017", # Allow timezone.utc for broader compatibility
"UP042", # Prefer StrEnum - requires larger refactor
"N802", # Function name should be lowercase (intentional for color constants)
"N806", # Variable in function should be lowercase (intentional for constants)
"SIM108", # Use ternary operator - sometimes less readable
"SIM102", # Nested ifs - sometimes more readable than combined condition
"SIM105", # contextlib.suppress - explicit try/except sometimes clearer
"SIM116", # dict instead of if-else - style preference
"PT011", # pytest.raises too broad - acceptable for some tests
"RUF001", # Ambiguous unicode - intentional in regex for real-world matching
"RUF012", # ClassVar for class attrs - verbose, doesn't affect correctness
"RUF059", # Unused unpacked variable - sometimes clearer to show structure
]
[tool.ruff.lint.isort]
known-first-party = ["primr"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
asyncio_mode = "strict"
markers = [
"integration: tests that make real API calls (require valid API keys)",
"slow: tests that take a long time to run",
]