-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpyproject.toml
More file actions
274 lines (247 loc) · 7.72 KB
/
Copy pathpyproject.toml
File metadata and controls
274 lines (247 loc) · 7.72 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
[project]
name = "notewise"
version = "1.4.3"
description = "A terminal-native CLI that turns YouTube videos and playlists into hierarchical Markdown study notes, quizzes, transcripts, and multi-format exports (MD · HTML · PDF · DOCX) — through the LLM provider you already pay for."
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.11"
license = { file = "LICENSE" }
authors = [{ name = "Jaydeep Solanki", email = "contactjaydeepsolanki@gmail.com" }]
keywords = [
# Core identity
"youtube",
"youtube-cli",
"youtube-to-notes",
"youtube-transcript",
"youtube-playlist",
# Use-case
"study",
"study-notes",
"study-guide",
"study-cli",
"note-taking",
"lecture-notes",
"course-notes",
"academic",
# Features
"quiz",
"chapter-detection",
"transcript",
"transcription",
"summarization",
"batch-processing",
# Output formats
"markdown",
"pdf",
"docx",
"html",
# AI / LLM
"ai",
"ai-notes",
"llm",
"litellm",
"gemini",
"openai",
"anthropic",
"groq",
# Tech
"cli",
"async",
"education",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Education",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Developers",
"Environment :: Console",
"Framework :: AsyncIO",
"License :: Other/Proprietary License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Education",
"Topic :: Internet",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Text Processing",
"Topic :: Text Processing :: Markup :: Markdown",
"Topic :: Text Processing :: Linguistic",
"Topic :: Utilities",
"Topic :: Multimedia :: Video",
"Typing :: Typed",
]
dependencies = [
"litellm==1.83.14",
"typer>=0.21.1,<0.24.0", # 0.24.0 bumped click req to >=8.2.1; litellm pins click==8.1.8
"rich>=15.0.0",
"aiolimiter>=1.2.1",
"sqlalchemy>=2.0.49",
"pydantic>=2.12.5", # floor set by litellm==1.83.14's exact pydantic pin
"pydantic-settings>=2.14.1",
"structlog>=25.5.0",
"markdown>=3.10.2",
"html2docx>=1.6.0",
"python-docx>=1.2.0",
"fpdf2>=2.8.7",
"defusedxml>=0.7.1",
]
[project.urls]
Homepage = "https://notewise.click"
Documentation = "https://notewise.click/docs"
Repository = "https://github.com/whoisjayd/notewise"
"Bug Tracker" = "https://github.com/whoisjayd/notewise/issues"
Changelog = "https://github.com/whoisjayd/notewise/releases"
"Docker Image" = "https://ghcr.io/whoisjayd/notewise"
[project.scripts]
notewise = "notewise.__main__:main"
# ---------------------------------------------------------------------------
# Build
# ---------------------------------------------------------------------------
[build-system]
requires = ["hatchling>=1.29.0"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
# Disallow PEP 440 direct references (url = "git+…") in published builds.
allow-direct-references = false
[tool.hatch.build.targets.wheel]
packages = ["src/notewise"]
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/tests",
"/README.md",
"/LICENSE",
"/CONTRIBUTING.md",
"/pyproject.toml",
]
# ---------------------------------------------------------------------------
# Dev dependencies
# ---------------------------------------------------------------------------
[dependency-groups]
dev = [
"pre-commit>=4.6.0",
"pyinstaller>=6.20.0",
"pytest>=9.0.3",
"pytest-xdist>=3.8.0",
"pytest-cov>=7.1.0",
"pytest-asyncio>=1.3.0",
"pytest-mock>=3.15.1",
"ruff>=0.15.12",
"bandit[toml]>=1.9.4",
"deptry>=0.25.1",
"ty>=0.0.35,<1",
"pytest-vcr>=1.0.2",
]
# ---------------------------------------------------------------------------
# Ruff
# ---------------------------------------------------------------------------
[tool.ruff]
line-length = 88
target-version = "py311"
src = ["src", "tests", "scripts"]
unsafe-fixes = true
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"B", # flake8-bugbear
"C4", # flake8-comprehensions — unnecessary list/dict/set calls
"I", # isort
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"RUF", # Ruff-specific rules — modernisation + correctness
"SIM", # flake8-simplify
"TCH", # flake8-type-checking — defer type-only imports into TYPE_CHECKING
]
ignore = [
"RUF012", # mutable class-var annotations — expected with Pydantic models
]
per-file-ignores = { "src/notewise/cli/_banner.py" = ["E501"], "src/notewise/storage/schemas.py" = ["TC003"], "tests/**/*.py" = ["ARG001", "ARG002", "RUF003"] }
[tool.ruff.lint.isort]
known-first-party = ["notewise"]
force-single-line = false
lines-after-imports = 2
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
# ---------------------------------------------------------------------------
# ty (Astral type-checker)
# ---------------------------------------------------------------------------
[tool.ty.environment]
python-version = "3.11"
root = ["./src"]
[tool.ty.src]
include = ["src/notewise"]
# ---------------------------------------------------------------------------
# pytest
# ---------------------------------------------------------------------------
[tool.pytest.ini_options]
addopts = "-ra --tb=short"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
testpaths = ["tests"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
# ---------------------------------------------------------------------------
# Coverage
# ---------------------------------------------------------------------------
[tool.coverage.run]
source = ["src/notewise"]
omit = ["*/tests/*", "*/__pycache__/*"]
concurrency = ["thread"]
branch = true
[tool.coverage.report]
show_missing = true
skip_empty = true
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@(abc\\.)?abstractmethod",
]
[tool.coverage.paths]
# Map installed / CI paths back to the local source tree so that coverage
# reports merge correctly when running against an editable install.
source = [
"src/notewise",
"*/notewise/src/notewise",
]
# ---------------------------------------------------------------------------
# Bandit
# ---------------------------------------------------------------------------
[tool.bandit]
exclude_dirs = ["tests", "scripts"]
# MEDIUM/MEDIUM catches real issues without too much noise.
# The previous HIGH/HIGH silently skipped a broad class of findings.
severity = "MEDIUM"
confidence = "MEDIUM"
# ---------------------------------------------------------------------------
# deptry
# ---------------------------------------------------------------------------
[tool.deptry]
exclude = [
".venv",
"build",
"dist",
"scripts",
"tests",
]