This repository was archived by the owner on Aug 7, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
177 lines (160 loc) · 4.62 KB
/
Copy pathpyproject.toml
File metadata and controls
177 lines (160 loc) · 4.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
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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "eclosion"
version = "1.3.10"
description = "Eclosion for Monarch - Your budgeting, evolved"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.11"
authors = [{ name = "Grayson Adams" }]
maintainers = [{ name = "312.dev", email = "ope@312.dev" }]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Flask",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"monarchmoney @ git+https://github.com/312-dev/monarchmoney.git@a8bb226d12112fbdfa575af344f65426643a1f11",
"pyotp>=2.9.0",
"Flask>=3.1.0",
"flask-cors>=4.0.0",
"flask-limiter>=3.8.0",
"python-dotenv>=1.1.0",
"cachetools>=6.1.0",
"cryptography>=41.0.0",
"APScheduler>=3.10.0",
]
[project.optional-dependencies]
dev = [
# Hot reload (Flask auto-uses if installed)
"watchdog>=4.0.0",
# Testing
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.1.0",
"pytest-mock>=3.12.0",
# Linting & Formatting
"ruff>=0.4.0",
"mypy>=1.10.0",
# Pre-commit
"pre-commit>=3.7.0",
# Type stubs
"types-cachetools>=5.3.0",
]
# ============================================================================
# Ruff Configuration (replaces black, isort, flake8, pylint)
# ============================================================================
[tool.ruff]
target-version = "py311"
line-length = 100
src = [".", "core", "services", "state"]
exclude = [
".git",
".venv",
"__pycache__",
"frontend",
"static",
"*.egg-info",
".pytest_cache",
".mypy_cache",
"desktop",
"docusaurus",
"scripts",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"SIM", # flake8-simplify
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # function call in default argument (common in Flask)
"B904", # raise-without-from (too noisy initially)
"SIM108", # ternary operator (readability preference)
]
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"tests/**/*.py" = ["B011", "S101"]
"sync_cli.py" = ["E402"] # Imports after sys.path modification
[tool.ruff.lint.isort]
known-first-party = ["core", "services", "state", "monarch_utils"]
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"
# ============================================================================
# Mypy Configuration
# ============================================================================
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_ignores = true
warn_redundant_casts = true
check_untyped_defs = true
disallow_untyped_defs = false # Start permissive, tighten later
ignore_missing_imports = true
exclude = [
"^desktop/",
"^docusaurus/",
"^scripts/",
"^frontend/",
]
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
disable_error_code = ["attr-defined", "index", "arg-type"] # More permissive for test mocks
[[tool.mypy.overrides]]
module = "monarchmoney.*"
ignore_missing_imports = true
# ============================================================================
# Pytest Configuration
# ============================================================================
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"
addopts = ["-v", "--tb=short", "--strict-markers", "-ra"]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests requiring external services",
]
filterwarnings = ["ignore::DeprecationWarning:monarchmoney.*"]
[tool.coverage.run]
source = ["core", "services", "state"]
branch = true
omit = ["*/tests/*", "*/__pycache__/*", "*/migrations/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
]
show_missing = true
fail_under = 0 # Start at 0, increase as coverage improves