-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (95 loc) · 2.62 KB
/
pyproject.toml
File metadata and controls
104 lines (95 loc) · 2.62 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
[project]
name = "motiflab"
version = "0.3.5"
description = "MotifLab"
requires-python = ">=3.9"
dependencies = [
"flask>=3.0.0",
"flask-cors>=4.0.0",
"python-dotenv>=1.0.0",
"google-genai>=1.0.0",
"dashscope>=1.24.0",
"replicate>=0.25.0",
"pyyaml>=6.0.0",
"requests>=2.31.0",
"pillow>=10.0.0",
"flask-limiter>=3.0.0",
"sqlalchemy>=2.0.30",
"alembic>=1.13.2",
"psycopg2-binary>=2.9.9",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["backend"]
[tool.uv]
dev-dependencies = [
"pytest>=8.2.0",
"pytest-cov>=5.0.0",
"ruff>=0.6.2",
"mypy>=1.11.2",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.coverage.run]
source = ["backend"]
branch = true
[tool.coverage.report]
show_missing = true
skip_covered = false
[tool.ruff]
target-version = "py39"
line-length = 120
src = ["backend", "tests"]
extend-exclude = [
"backend/app.py",
"backend/application/core",
"backend/application/pipelines",
"backend/application/skills",
"backend/bootstrap/__init__.py",
"backend/config",
"backend/infrastructure/clients",
"backend/infrastructure/concept_history",
"backend/infrastructure/generators",
"backend/infrastructure/gateways",
"backend/infrastructure/history",
"backend/infrastructure/services",
"backend/knowledge",
"backend/middleware.py",
"backend/migrations",
"backend/routes/concept_routes.py",
"backend/routes/content_routes.py",
"backend/routes/history_routes.py",
"backend/routes/image_routes.py",
"backend/routes/knowledge_routes.py",
"backend/routes/outline_routes.py",
"backend/routes/pipeline_routes.py",
"backend/routes/publish_routes.py",
"backend/routes/template_routes.py",
"backend/utils",
]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "B"]
ignore = ["E501"]
[tool.mypy]
python_version = "3.9"
files = [
"backend/bootstrap/flask_factory.py",
"backend/infrastructure/persistence/session.py",
"backend/infrastructure/persistence/__init__.py",
"backend/application/services/image_generation_application_service.py",
"backend/application/services/search_application_service.py",
"backend/application/services/__init__.py",
"backend/routes/search_routes.py",
"backend/routes/config_routes.py",
"tests/test_database_startup_migration.py",
"tests/test_image_job_routes.py",
"tests/test_search_routes.py",
]
ignore_missing_imports = true
warn_redundant_casts = true
warn_unused_ignores = true
check_untyped_defs = true
follow_imports = "skip"
disable_error_code = ["import-untyped"]