forked from the-crypt-keeper/tldw
-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathpyproject.toml
More file actions
1814 lines (1748 loc) · 98.3 KB
/
Copy pathpyproject.toml
File metadata and controls
1814 lines (1748 loc) · 98.3 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
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
###########################
# pyproject.toml for tldw_Server_API
###########################
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
###########################
# Project Info
###########################
[project]
name = "tldw-server"
version = "0.1.41"
description = "A comprehensive research assistant and media analysis platform - Too Long; Didn't Watch Server"
requires-python = ">=3.10"
readme = "README.md"
# Use SPDX license expression as a string to avoid deprecation warnings.
# Project is licensed under GPLv3.
license = "GPL-3.0-only"
keywords = ["transcription", "summarization", "media-processing", "llm", "rag", "fastapi", "research-assistant"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Multimedia :: Sound/Audio :: Analysis",
"Topic :: Multimedia :: Video",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Text Processing :: Linguistic",
"Framework :: FastAPI",
]
authors = [
{ name = "Robert Musser", email = "contact@tldwproject.com" }
]
dependencies = [
# API Server Core
"aiofiles>=23.0.0",
"aiohttp",
"aioresponses",
"aiosqlite",
"apscheduler>=3.10.0",
"tzlocal>=3.0",
"argon2-cffi>=23.0.0",
"asyncpg",
"psycopg[binary]>=3.1",
"cachetools>=5.0.0",
"click>=8.0.0",
"click-completion>=0.5.2",
"typer>=0.12.0",
"defusedxml>=0.7.0",
"email-validator>=2.0.0",
"fastapi>=0.136.3,<0.137.0",
"httpcore[asyncio]>=1.0.9,<2",
"httpx>=0.24.0",
"certifi>=2024.2.2",
"hypothesis",
"loguru>=0.7.0",
"lxml>=4.9.0",
"numpy>=1.24.0",
"icalendar>=5.0.0",
"openpyxl>=3.1.2",
"pandas>=2.0.0",
"passlib>=1.7.0",
"pathspec>=0.12.1",
"prometheus-client",
"psutil>=5.9.0",
"pydantic>=2.0.0",
"pydantic-core>=2.0.0",
"pydantic-settings>=2.2.1",
"python-dotenv>=1.0.0",
"python-dateutil>=2.9.0",
"python-magic>=0.4.0",
"python-multipart>=0.0.27",
"jsonschema>=4.22.0",
"markdown>=3.6",
"pyspellchecker>=0.7.2",
"PyYAML>=6.0.0",
"redis>=4.5.0",
"rich>=13.0.0",
"scikit-learn>=1.3.0",
"scipy>=1.10.0",
"sqlglot>=25.0.0",
"slowapi>=0.1.0",
"starlette>=1.0.1",
"tabulate>=0.9.0",
"toml>=0.10.0",
"tomli>=2.0.0",
"tqdm>=4.65.0",
"uvicorn[standard]>=0.23.0",
# Security
"cryptography>=41.0.0",
"regex>=2024.0.0",
"keyring>=24.0.0",
"puremagic>=1.15",
"pycryptodomex>=3.18.0",
"PyJWT>=2.8.0",
"python-jose[cryptography]>=3.3.0",
"yara-python>=4.3.0",
"pyotp",
# Audio/Video Processing
"faster-whisper>=1.2.1",
"av>=11.0.0",
"PyAudio>=0.2.0",
"sounddevice>=0.4.0",
"soundfile>=0.12.0",
"yt-dlp>=2026.7.4",
# NLP/Text Processing
"chardet>=5.0.0",
"fugashi>=1.2.0",
"jieba>=0.42.0",
"langdetect>=1.0.9",
"nltk>=3.8.0",
"tiktoken>=0.5.0",
# Document Processing
"beautifulsoup4>=4.12.0",
"docling>=1.0.0",
"docx2txt>=0.8",
"EbookLib>=0.18",
"html2text>=2020.1.0",
"lxml-html-clean>=0.1.0",
"mwparserfromhell>=0.6.0",
"mwxml>=0.3.0",
"pymupdf>=1.23.0",
"pymupdf4llm>=0.0.5",
"pypandoc>=1.11",
"pypandoc-binary>=1.11",
"trafilatura>=1.6.0",
# LLM/ML Integration
"flashrank>=0.2.0",
"onnx-asr[hub]>=0.11.0",
"onnxruntime>=1.14.0",
"openai>=1.0.0",
"optimum>=1.13.0",
"torch>=2.11.0",
"transformers>=5.5.3",
"sentence-transformers>=5.4.0",
# Research/Web
"arxiv>=2.0.0",
"playwright>=1.40.0",
"playwright-stealth>=1.0.0",
"requests>=2.31.0",
"tenacity>=8.2.0",
"urllib3>=2.0.0",
# Vector Database
"chromadb>=0.4.0",
"SQLAlchemy>=2.0.29",
# Evals
"matplotlib",
# HTML sanitization
"bleach>=6.1.0",
# Template/UI Utilities
"Jinja2>=3.1.0",
"Pillow>=10.0.0",
]
[project.urls]
Homepage = "https://tldwproject.com"
Documentation = "https://docs.tldwproject.com"
Repository = "https://github.com/rmusser01/tldw_server"
"Bug Tracker" = "https://github.com/rmusser01/tldw_server/issues"
"Source Code" = "https://github.com/rmusser01/tldw_server"
[project.optional-dependencies]
# ACP (web SSH + sandbox management)
acp = [
"asyncssh>=2.14.0",
]
# Native CodeGraph parser dependencies
codegraph = [
"tree-sitter>=0.25,<0.26",
"tree-sitter-python>=0.25,<0.26",
"tree-sitter-javascript>=0.25,<0.26",
"tree-sitter-typescript>=0.23,<0.24",
"tree-sitter-java>=0.23,<0.24",
"tree-sitter-kotlin>=1.1,<1.2",
"tree-sitter-c-sharp>=0.23,<0.24",
"tree-sitter-c>=0.24,<0.25",
"tree-sitter-cpp>=0.23,<0.24",
]
# Multi-User
multiplayer = [
"pyotp",
"psycopg",
"qrcode",
]
# Development tools
dev = [
"pytest>=9.0.3",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.1.0",
"pytest-xdist>=3.8.0",
"pytest-split>=0.9.0",
"pytest-mock>=3.15.1",
"pytest-timeout>=2.4.0",
"pytest-benchmark>=5.2.3",
"pytest-randomly>=3.15.0",
"black>=26.3.1",
"mypy>=1.20.1",
"ruff>=0.15.10",
"pre-commit>=4.5.1",
"websockets>=12.0",
"locust>=2.20.0"
]
# Tooling smoke helpers and local scripts
tooling = [
"requests>=2.31.0",
"websockets>=12.0",
]
# OpenTelemetry (optional, for metrics/tracing export)
otel = [
"opentelemetry-distro>=0.62b0",
"opentelemetry-exporter-otlp>=1.24.0",
"opentelemetry-exporter-prometheus>=0.49b0",
"opentelemetry-instrumentation-fastapi>=0.48b0",
"opentelemetry-instrumentation-httpx>=0.48b0",
"opentelemetry-instrumentation-sqlalchemy>=0.48b0",
"opentelemetry-instrumentation-psycopg2>=0.48b0",
"opentelemetry-instrumentation-aiohttp-client>=0.48b0",
]
# Error tracking (optional, for Sentry integration)
sentry = [
"sentry-sdk[fastapi]>=2.0.0",
]
# Evaluation and metrics (optional)
evaluation = [
"bert-score>=0.3.0",
"rouge-score>=0.1.0",
"sentence-transformers>=5.4.0",
"textstat>=0.7.0"
]
# Data processing tools (optional)
data-tools = [
"datasets>=2.14.0",
"fire>=0.5.0",
"genanki>=0.13.0",
"joblib>=1.3.0",
"python-json-logger>=2.0.0"
]
chunking_multilingual = [
"pysbd>=0.3.4",
"pythainlp>=4.0.0",
"konlpy>=0.6.0",
"spacy>=3.7.0"
]
# OCR providers (optional)
# Source-only backends such as dots.ocr and POINTS transformers are installed
# manually; direct VCS dependencies are not accepted in PyPI package metadata.
ocr_points_sglang = [
# Client-side only; server runs separately
"requests>=2.31.0"
]
# MediaWiki processing
media_wiki = [
"mwparserfromhell>=0.6.0",
"mwxml>=0.3.0"
]
ingestion_email = [
"pypff>=0.6.3"
]
# Web research features
web_research = [
"arxiv>=2.0.0",
"genanki>=0.13.0",
"playwright>=1.40.0",
"trafilatura>=1.6.0"
]
# Scraper analyzers (optional)
scrape-analyzers = [
"playwright>=1.40.0",
"curl-cffi>=0.5.0",
]
scrape-analyzers-waf = [
"wafw00f>=2.2.0",
]
# Windows audio recording
audio_recording_windows = [
"PyAudioWPatch>=0.2.12"
]
# Speaker Diarization (optional)
diarization = [
"speechbrain>=0.5.15",
"torch>=2.11.0",
"torchaudio>=2.11.0",
"scikit-learn>=1.3.0",
"pyannote.audio>=3.0.0"
]
# Speech-to-Text with NVIDIA NeMo
STT_All = [
"nemo-toolkit[asr]>=1.20.0",
"cython>=0.29.0",
"webrtcvad>=2.0.10"
]
STT_Parakeet = [
"nemo-toolkit[asr]>=1.20.0",
"cython>=0.29.0",
]
STT_Parakeet_MLX = [
"librosa",
"parakeet-mlx",
"numpy<2.4; platform_system == \"Darwin\" and platform_machine == \"arm64\"",
"mlx>=0.30.0; platform_system == \"Darwin\" and platform_machine == \"arm64\"",
]
# MLX LLM provider (Apple Silicon)
LLM_MLX = [
"mlx-lm>=0.28.0; platform_system == \"Darwin\" and platform_machine == \"arm64\"",
"mlx>=0.30.0; platform_system == \"Darwin\" and platform_machine == \"arm64\"",
]
# Text-to-Speech
TTS_All = [
"pydub>=0.25.0"
]
TTS_kokoro = [
"pydub>=0.25.0",
"phonemizer>=3.2.0",
"scipy>=1.10.0",
"munch>=4.0.0",
"kokoro>=0.1.0"
]
TTS_kokoro_onnx = [
"pydub>=0.25.0",
"onnxruntime>=1.16.0",
"kokoro-onnx>=0.1.0"
]
TTS_pocket_tts = [
"onnxruntime>=1.16.0",
"soundfile>=0.12.1",
"sentencepiece>=0.1.99",
"scipy>=1.10.0",
"huggingface_hub>=0.21.0"
]
TTS_kitten_tts = [
"onnxruntime>=1.16.0",
"phonemizer-fork~=3.3.2",
"espeakng_loader",
"huggingface_hub>=0.23.0",
]
TTS_sovits = [
"pydub>=0.25.0"
]
# Advanced TTS Providers
TTS_higgs = [
"torch>=2.11.0",
"torchaudio>=2.11.0",
"transformers>=5.5.3",
"accelerate>=0.20.0",
# Note: higgs-audio must be installed from source:
# git clone https://github.com/boson-ai/higgs-audio.git && cd higgs-audio && pip install -e .
]
TTS_vibevoice = [
"torch>=2.11.0",
"torchaudio>=2.11.0",
"transformers>=5.5.3",
"accelerate>=0.20.0",
"flash-attn>=2.5.8; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
"sageattention>=1.0.0; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
"librosa>=0.10.0",
# Note: VibeVoice must be installed from source (community reference):
# git clone https://github.com/vibevoice-community/VibeVoice.git && cd VibeVoice && pip install -e .
]
TTS_echo_tts = [
"torch>=2.11.0",
"torchaudio>=2.11.0",
"torchcodec>=0.11.0",
"huggingface_hub>=0.23.0",
"safetensors>=0.4.2",
"einops>=0.8.0"
]
# Optional language preprocessing extras for multilingual text tokenization
TTS_chatterbox_lang = [
"pykakasi>=2.2.1", # Japanese romanization -> hiragana
"dicta-onnx>=0.2.0", # Hebrew diacritics
"spacy-pkuseg>=0.0.33", # Chinese segmentation
"russian_text_stresser>=1.0.5", # Russian stress marks
]
# NeuTTS Air (Neuphonic)
TTS_neutts = [
"librosa>=0.10.0",
"phonemizer>=3.2.1",
"transformers>=5.5.3",
"torch>=2.11.0",
"neucodec>=0.0.4",
"resemble-perth>=1.0.0",
# Optional backends:
"onnxruntime>=1.16.0",
"llama-cpp-python>=0.2.0"
]
# Backend options
backend_onnx = [
"onnxruntime>=1.16.0"
]
backend_llama = [
"llama-cpp-python>=0.2.0"
]
backend_vllm = [
"vllm>=0.2.0"
]
# Database backends
db_postgres = [
"psycopg[binary]>=3.1",
"psycopg-pool>=3.1",
"psycopg2-binary>=2.9.9"
]
db_opensearch = [
"opensearch-py>=2.3.0",
"elasticsearch>=8.0.0"
]
# Gradio tooling
gradio = [
"gradio>=4.0.0"
]
gpu_monitoring = [
"pynvml>=11.5.0; platform_system == \"Linux\""
]
# All optional dependencies
all = [
"tldw-server[dev,evaluation,data-tools,chunking_multilingual,gradio,ingestion_email,media_wiki,web_research,STT_All,TTS_All,TTS_higgs,TTS_vibevoice,backend_onnx,db_postgres,ocr_points_sglang,gpu_monitoring]"
]
###########################
# Entry Points
###########################
[project.scripts]
tldw-server = "tldw_Server_API.app.main:run_server"
# Point tldw-evals to the richer, unified CLI
tldw-evals = "tldw_Server_API.cli.evals_cli:main"
tldw-setup = "tldw_Server_API.cli.wizard.cli:main"
###########################
# Tools - Package Discovery
###########################
[tool.setuptools]
include-package-data = false
[tool.setuptools.packages.find]
where = [".", "apps/mcp-unified/src"]
include = [
"tldw_Server_API",
"tldw_Server_API.*",
"mcp_unified",
"mcp_unified.*",
]
namespaces = false
exclude = [
"tests*",
"docs*",
"Helper_Scripts*",
"tldw_Server_API.tests",
"tldw_Server_API.tests.*",
"tldw_Server_API.models",
"tldw_Server_API.models.*",
"*.tests",
"*.tests.*",
"tests.*",
]
[tool.setuptools.package-data]
tldw_Server_API = [
"Config_Files/**/*",
"app/static/**/*",
"app/Setup_UI/*.html",
"app/core/Evaluations/data/*.json",
"app/core/Evaluations/data/**/*.json",
"app/core/DB_Management/migrations/*.sql",
"app/core/Persona/assets/**/*.png",
"app/core/Slides/revealjs/**/*",
"Databases/**/*.sql",
"Samples/Workflows/*.json",
]
mcp_unified = ["docs/store/schema.sql"]
[tool.setuptools.exclude-package-data]
tldw_Server_API = [
"Config_Files/config.txt.backup_*",
"Config_Files/session_encryption.key",
"Config_Files/session_encryption.key.lock",
"tests/**/*",
"models/**/*",
"app/core/Ingestion_Media_Processing/Audio/models/**/*",
"**/.locks/**/*",
"**/.no_exist/**/*",
"**/blobs/**/*",
]
###########################
# Tools - Tests
###########################
[tool.pytest.ini_options]
pythonpath = ["apps/mcp-unified/src"]
filterwarnings = [
"ignore::DeprecationWarning:pkg_resources:",
"ignore::DeprecationWarning:speechbrain.pretrained:",
"ignore::DeprecationWarning:transformers:",
"ignore::DeprecationWarning:torch:",
"ignore:.*swigvarlink.*:DeprecationWarning",
# Trim noisy deprecations from common deps used in tests
"ignore::DeprecationWarning:httpx:",
"ignore::DeprecationWarning:anyio:",
"ignore::DeprecationWarning:starlette:",
"ignore::DeprecationWarning:pydantic:",
"ignore::PendingDeprecationWarning:.*",
# Third-party optional libs warnings (reduce noise in CI)
"ignore::UserWarning:transformers:",
"ignore::UserWarning:torch:",
"ignore::UserWarning:torchaudio:",
"ignore::UserWarning:speechbrain:"
]
markers = [
"asyncio: mark test as async",
"unit: marks tests as unit tests",
"integration: marks tests as integration tests",
"postgres: marks tests that require PostgreSQL",
"e2e: marks end-to-end UI tests",
"external_api: marks tests that require external API access",
"local_llm_service: marks tests that require local LLM service",
"timeout: marks tests with custom timeout settings",
"bench: marks benchmark tests",
"benchmark: marks performance benchmark tests",
"performance: marks performance tests",
"smoke: marks smoke tests",
"slow: marks tests that take a long time to run",
"load: marks load testing tests",
"property: marks property-based testing tests",
"embeddings_abtest: marks embeddings A/B evaluation tests",
"requires_rag: marks tests that require RAG functionality",
"monitoring: marks monitoring/metrics tests",
"pg_integration: marks Postgres integration tests",
"pg_jobs: marks Postgres jobs tests",
"pg_jobs_stress: marks Postgres jobs stress tests",
"real_audit: marks tests that hit real audit DB",
"strategy: marks strategy tests",
"requires_llm: marks tests requiring LLM backends",
"requires_api_key: marks tests requiring API key auth",
"sandbox_ws_auth: marks sandbox websocket auth tests",
"sandbox_ws_signed: marks sandbox websocket tests that require signed URLs",
"sandbox_no_auth: marks sandbox tests that must run without default auth headers",
"sandbox_no_reload: marks sandbox tests that should not reload app.main",
"sandbox_real_docker: marks sandbox tests that require real Docker execution paths",
"vz_linux_host_smoke: marks opt-in Apple silicon VZ Linux host smoke tests",
"vz_linux_host_failure_drill: marks manual opt-in Apple silicon VZ Linux host failure drills",
"legacy_tts: marks legacy TTS tests",
"concurrent: marks concurrency tests",
"streaming: marks streaming tests",
"negative: marks negative tests",
"requires_embeddings: marks tests requiring embeddings",
"multi_user: marks multi-user mode tests",
"security: marks security tests",
"requires_pypff: marks tests requiring pypff",
"critical: marks critical path tests",
"stress: marks stress tests",
"requires_model: marks tests requiring local model",
"rate_limit: marks rate limiting tests",
"pipeline: marks pipeline/integration tests",
"media_processing: marks media processing tests",
"jobs: marks background jobs tests"
,
"strict_mode: marks strict OpenAI-compatible filtering tests",
]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
testpaths = ["tldw_Server_API/tests", "tldw_Server_API/app/core/MCP_unified/tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
# NOTE: `plugins` is NOT a recognized `[tool.pytest.ini_options]` key — pytest
# silently ignores it. The suite's plugins are actually loaded via
# `pytest_plugins` in conftest.py (repo root) and
# tldw_Server_API/tests/conftest.py. This list is kept only as documentation of
# the intended plugin set; DO NOT register a new plugin here expecting it to
# load — add it to a `pytest_plugins` tuple instead.
plugins = [
# Shared fixtures/plugins for the suite
"tldw_Server_API.tests._plugins.authnz_fixtures",
# Isolated Chat fixtures (unit_test_client, isolated_db, etc.)
"tldw_Server_API.tests.Chat.integration.conftest_isolated",
# Unified Postgres fixtures (temp DBs, reachability, DatabaseConfig)
"tldw_Server_API.tests._plugins.postgres",
# Optional pgvector fixtures (skipped gracefully if unavailable)
"tldw_Server_API.tests.helpers.pgvector",
# E2E suite fixtures/state shared across tests
"tldw_Server_API.tests._plugins.e2e_fixtures",
"tldw_Server_API.tests._plugins.e2e_state_fixtures",
"tldw_Server_API.tests._plugins.media_fixtures",
# AuthNZ fixtures used across Resource_Governance and other suites
"tldw_Server_API.tests._plugins.authnz_full_fixtures",
]
addopts = [
"--import-mode=importlib",
"--strict-markers",
"--verbose",
"--tb=short",
"--disable-warnings",
# Do not force-load pytest-asyncio: it is auto-discovered via entrypoints.
]
timeout = 300
timeout_method = "thread"
###########################
# Tools - Code Quality
###########################
[tool.black]
line-length = 120
target-version = ['py39', 'py310', 'py311', 'py312']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.ruff]
line-length = 120
target-version = "py39"
src = ["tldw_Server_API", "apps/mcp-unified/src/mcp_unified"]
extend-include = ["*.ipynb"]
exclude = [
"migrations",
"__pycache__",
"*.egg-info",
"build",
"dist",
"tests",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"N", # pep8-naming
"SIM", # flake8-simplify
"BLE", # flake8-blind-except: flag 'except Exception' and overly broad exceptions
"TRY", # tryceratops: try/except best practices (no empty excepts, etc.)
]
ignore = [
"E501", # line too long
"E402", # module-level import not at top — many files use __future__+docstring or conditional imports
"E741", # ambiguous variable name (l, I, O) — used intentionally in math/loop contexts
"B008", # do not perform function calls in argument defaults
# BLE001 removed from global ignore — grandfathered per-file below
"C901", # too complex
"N802", # function name should be lowercase
"N803", # camelCase argument names — from API/Pydantic schemas
"N806", # variable in function should be lowercase
"N805", # invalid first argument name for method (Pydantic validators use cls without @classmethod)
"N814", # camelCase imported as constant — project convention for some imports
"N818", # exception class name should end in Error — existing convention
"N999", # invalid module name (project uses CamelCase module names by convention)
"N815", # mixed-case-variable-in-class-scope — project convention
"N816", # mixed-case-variable-in-global-scope — project convention
"SIM102", # collapsible-if — nested ifs are often more readable with comments
"SIM105", # suppressible-exception — contextlib.suppress() is less readable for complex cases
"SIM108", # if-else-block-instead-of-if-exp — ternary not always more readable
"SIM112", # uncapitalized-environment-variables — existing convention
"SIM115", # open-file-with-context-handler — many valid patterns without context manager
"SIM116", # if-else-block-instead-of-dict-lookup — not always clearer
"SIM117", # multiple-with-statements — nested with is often more readable
"TRY002", # raise-vanilla-class — project raises Exception in some valid contexts
"TRY003", # wants custom exception classes for every raise ValueError("msg")
"TRY004", # type-check-without-type-error — ValueError vs TypeError is debatable
"TRY300", # try-consider-else — opinionated, return in try is idiomatic Python
"TRY301", # abstract raise to inner function — impractical
"TRY401", # verbose log message — debatable
]
exclude = []
[tool.ruff.lint.per-file-ignores]
"tldw_Server_API/app/api/v1/endpoints/*.py" = ["B008"]
"tldw_Server_API/app/api/v1/schemas/rag_schemas_simple_compat.py" = ["F403", "F405"]
"tldw_Server_API/app/core/Character_Chat/Character_Chat_Lib_facade.py" = ["F403", "F405"]
"tldw_Server_API/app/api/v1/endpoints/audio/__init__.py" = ["F401", "BLE001"]
# BLE001 grandfathered — explicit legacy file list generated on 2026-04-20.
# New files remain subject to BLE001 because only current violators are listed here.
"tldw_Server_API/Config_Files/test_env_loading.py" = ["BLE001"]
"tldw_Server_API/__init__.py" = ["BLE001"]
"tldw_Server_API/app/__init__.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/API_Deps/Audit_DB_Deps.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/API_Deps/Collections_DB_Deps.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/API_Deps/Meetings_DB_Deps.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/API_Deps/Slides_DB_Deps.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/API_Deps/Watchlists_DB_Deps.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/API_Deps/billing_deps.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/API_Deps/kanban_deps.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/API_Deps/media_add_deps.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/API_Deps/media_processing_deps.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/API_Deps/personalization_deps.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/acp_multiplex.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/acp_permissions.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/acp_schedules.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/acp_triggers.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/admin/admin_circuit_breakers.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/admin/admin_llm_providers.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/admin/admin_monitoring.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/admin/admin_ops.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/admin/admin_profiles.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/admin/admin_registration.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/admin/admin_sessions_mfa.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/admin/admin_user.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/agent_client_protocol.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/agent_orchestration.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/audio/audio.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/audio/audio_health.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/audio/audio_streaming.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/audio/audio_tokenizer.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/audio/audio_transcriptions.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/audio/audio_tts.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/audit.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/auth.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/billing.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/character_chat_sessions.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/character_memory.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/chat.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/chat_dictionaries.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/chunking.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/config_info.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/connectors.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/data_tables.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/discord.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/discord_support.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/evaluations/evaluations_auth.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/evaluations/evaluations_unified.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/files.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/kanban/kanban_search.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/mcp_unified_endpoint.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/media/__init__.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/media/debug.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/media/document_annotations.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/media/document_figures.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/media/document_outline.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/media/document_references.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/media/ingest_jobs.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/media/item.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/media/navigation.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/media/process_audios.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/media/process_code.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/media/process_documents.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/media/process_ebooks.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/media/process_emails.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/media/process_pdfs.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/media/process_videos.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/media/process_web_scraping.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/media/reading_progress.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/media/reprocess.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/media_embeddings.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/meetings.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/org_invites.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/orgs.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/persona.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/prompt_studio/prompt_studio_projects.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/prompt_studio/prompt_studio_prompts.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/prompt_studio/prompt_studio_status.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/quizzes.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/reading_highlights.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/research.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/research_runs.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/scheduler_workflows.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/shared_keys_scoped.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/sharing.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/skills.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/slack.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/slack_support.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/slides.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/storage.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/study_suggestions.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/sync.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/telegram_support.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/translate.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/user_keys.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/vlm.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/endpoints/watchlists.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/schemas/_compat.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/schemas/chat_request_schemas.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/schemas/chunking_schema.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/schemas/chunking_templates_schemas.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/schemas/evaluation_schema.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/schemas/evaluation_schemas_unified.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/schemas/flashcards.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/schemas/rag_schemas_unified.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/schemas/websearch_schemas.py" = ["BLE001"]
"tldw_Server_API/app/api/v1/utils/datetime_utils.py" = ["BLE001"]
"tldw_Server_API/app/core/Agent_Client_Protocol/adapters/mcp_runners.py" = ["BLE001"]
"tldw_Server_API/app/core/Agent_Client_Protocol/adapters/mcp_transports/sse.py" = ["BLE001"]
"tldw_Server_API/app/core/Agent_Client_Protocol/agent_registry.py" = ["BLE001"]
"tldw_Server_API/app/core/Agent_Client_Protocol/consumers/audit_logger.py" = ["BLE001"]
"tldw_Server_API/app/core/Agent_Client_Protocol/consumers/checkpoint_consumer.py" = ["BLE001"]
"tldw_Server_API/app/core/Agent_Client_Protocol/consumers/ws_broadcaster.py" = ["BLE001"]
"tldw_Server_API/app/core/Agent_Client_Protocol/health_monitor.py" = ["BLE001"]
"tldw_Server_API/app/core/Agent_Client_Protocol/metrics.py" = ["BLE001"]
"tldw_Server_API/app/core/Agent_Client_Protocol/multiplex/manager.py" = ["BLE001"]
"tldw_Server_API/app/core/Agent_Client_Protocol/permission_tiers.py" = ["BLE001"]
"tldw_Server_API/app/core/Agent_Client_Protocol/prompt_utils.py" = ["BLE001"]
"tldw_Server_API/app/core/Agent_Client_Protocol/runner_client.py" = ["BLE001"]
"tldw_Server_API/app/core/Agent_Client_Protocol/sandbox_bridge.py" = ["BLE001"]
"tldw_Server_API/app/core/Agent_Client_Protocol/stdio_client.py" = ["BLE001"]
"tldw_Server_API/app/core/Agent_Client_Protocol/stream_client.py" = ["BLE001"]
"tldw_Server_API/app/core/Agent_Client_Protocol/triggers.py" = ["BLE001"]
"tldw_Server_API/app/core/Audio/dictation_error_taxonomy.py" = ["BLE001"]
"tldw_Server_API/app/core/Audio/error_payloads.py" = ["BLE001"]
"tldw_Server_API/app/core/Audio/quota_helpers.py" = ["BLE001"]
"tldw_Server_API/app/core/Audio/tokenizer_service.py" = ["BLE001"]
"tldw_Server_API/app/core/Audio/transcription_service.py" = ["BLE001"]
"tldw_Server_API/app/core/Audiobooks/subtitle_generator.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/User_DB_Handling.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/api_key_crypto.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/api_key_manager.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/byok_helpers.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/byok_rotation.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/byok_testing.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/create_admin.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/db_config.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/email_service.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/federation/oidc_service.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/federation/provisioning_service.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/input_validation.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/key_resolution.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/llm_provider_overrides.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/lockout_tracker.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/mfa_service.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/migrate_to_multiuser.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/monitoring.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/org_rbac.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/orgs_teams.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/password_service.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/permissions.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/principal_model.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/rbac.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/rbac_seed.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/backup_schedules_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/byok_oauth_state_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/byok_validation_runs_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/data_subject_requests_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/federated_identity_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/federated_managed_grant_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/generated_files_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/identity_provider_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/llm_provider_overrides_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/maintenance_rotation_runs_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/managed_secret_refs_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/mcp_hub_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/media_ingest_dedupe_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/mfa_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/org_provider_secrets_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/org_stt_settings_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/orgs_teams_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/quotas_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/rate_limits_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/sessions_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/shared_workspace_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/storage_quotas_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/telegram_approvals_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/telegram_runtime_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/token_blacklist_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/usage_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/user_provider_secrets_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/repos/workspace_provider_installations_repo.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/reset_admin_password.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/retention_policies.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/run_migrations.py" = ["BLE001"]
"tldw_Server_API/app/core/AuthNZ/usage_logging_middleware.py" = ["BLE001"]
"tldw_Server_API/app/core/Billing/enforcement.py" = ["BLE001"]
"tldw_Server_API/app/core/Billing/subscription_service.py" = ["BLE001"]
"tldw_Server_API/app/core/Character_Chat/ccv3_parser.py" = ["BLE001"]
"tldw_Server_API/app/core/Character_Chat/constants.py" = ["BLE001"]
"tldw_Server_API/app/core/Character_Chat/modules/character_db.py" = ["BLE001"]
"tldw_Server_API/app/core/Character_Chat/modules/character_memory_extraction.py" = ["BLE001"]
"tldw_Server_API/app/core/Character_Chat/modules/character_prompt_presets.py" = ["BLE001"]
"tldw_Server_API/app/core/Character_Chat/modules/character_templates.py" = ["BLE001"]
"tldw_Server_API/app/core/Character_Chat/modules/character_utils.py" = ["BLE001"]
"tldw_Server_API/app/core/Character_Chat/modules/character_validation.py" = ["BLE001"]
"tldw_Server_API/app/core/Chat/Workflows.py" = ["BLE001"]
"tldw_Server_API/app/core/Chat/chat_characters.py" = ["BLE001"]
"tldw_Server_API/app/core/Chat/chat_helpers.py" = ["BLE001"]
"tldw_Server_API/app/core/Chat/chat_history.py" = ["BLE001"]
"tldw_Server_API/app/core/Chat/chat_loop_approval.py" = ["BLE001"]
"tldw_Server_API/app/core/Chat/chat_metrics.py" = ["BLE001"]
"tldw_Server_API/app/core/Chat/command_router.py" = ["BLE001"]
"tldw_Server_API/app/core/Chat/conversation_enrichment.py" = ["BLE001"]
"tldw_Server_API/app/core/Chat/prompt_template_manager.py" = ["BLE001"]
"tldw_Server_API/app/core/Chat/provider_manager.py" = ["BLE001"]
"tldw_Server_API/app/core/Chat/streaming_utils.py" = ["BLE001"]
"tldw_Server_API/app/core/Chatbooks/jobs_adapter.py" = ["BLE001"]
"tldw_Server_API/app/core/Chatbooks/services/jobs_worker.py" = ["BLE001"]
"tldw_Server_API/app/core/Chunking/async_chunker.py" = ["BLE001"]
"tldw_Server_API/app/core/Chunking/base.py" = ["BLE001"]
"tldw_Server_API/app/core/Chunking/constants.py" = ["BLE001"]
"tldw_Server_API/app/core/Chunking/multilingual.py" = ["BLE001"]
"tldw_Server_API/app/core/Chunking/splitters/__init__.py" = ["BLE001"]
"tldw_Server_API/app/core/Chunking/strategies/code.py" = ["BLE001"]
"tldw_Server_API/app/core/Chunking/strategies/json_xml.py" = ["BLE001"]
"tldw_Server_API/app/core/Chunking/strategies/propositions.py" = ["BLE001"]
"tldw_Server_API/app/core/Chunking/strategies/rolling_summarize.py" = ["BLE001"]
"tldw_Server_API/app/core/Chunking/strategies/semantic.py" = ["BLE001"]
"tldw_Server_API/app/core/Chunking/strategies/structure_aware.py" = ["BLE001"]
"tldw_Server_API/app/core/Chunking/strategies/words.py" = ["BLE001"]
"tldw_Server_API/app/core/Chunking/utils/proposition_eval.py" = ["BLE001"]
"tldw_Server_API/app/core/Claims_Extraction/adjudicator.py" = ["BLE001"]
"tldw_Server_API/app/core/Claims_Extraction/anti_context_retriever.py" = ["BLE001"]
"tldw_Server_API/app/core/Claims_Extraction/budget_guard.py" = ["BLE001"]
"tldw_Server_API/app/core/Claims_Extraction/claims_clustering.py" = ["BLE001"]
"tldw_Server_API/app/core/Claims_Extraction/falsification.py" = ["BLE001"]
"tldw_Server_API/app/core/Claims_Extraction/fva_pipeline.py" = ["BLE001"]
"tldw_Server_API/app/core/Claims_Extraction/review_assignment.py" = ["BLE001"]
"tldw_Server_API/app/core/Claims_Extraction/runtime_config.py" = ["BLE001"]
"tldw_Server_API/app/core/Collections/embedding_queue.py" = ["BLE001"]
"tldw_Server_API/app/core/Collections/reading_import_jobs.py" = ["BLE001"]
"tldw_Server_API/app/core/Collections/reading_importers.py" = ["BLE001"]
"tldw_Server_API/app/core/Collections/utils.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/ChatWorkflows_DB.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/Circuit_Breaker_Registry_DB.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/Personalization_DB.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/Resource_Daily_Ledger.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/TopicMonitoring_DB.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/Workflows_Scheduler_DB.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/backends/base.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/backends/factory.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/backends/pg_rls_policies.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/backends/query_utils.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/content_backend.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/content_migrate.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/db_migration.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/db_path_utils.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/kanban_vector_search.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/media_db/api.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/media_db/repositories/document_versions_repository.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/media_db/repositories/keywords_repository.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/media_db/repositories/media_search_repository.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/media_db/runtime/defaults.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/media_db/runtime/visual_document_ops.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/migrations.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/migrations_v5_unified_evaluations.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/migrations_v6_audit_logging.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/migrations_v6_evaluation_recipes.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/migrations_v7_synthetic_eval_workflow.py" = ["BLE001"]
"tldw_Server_API/app/core/DB_Management/sqlite_policy.py" = ["BLE001"]