-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
196 lines (176 loc) · 4.59 KB
/
Copy pathpyproject.toml
File metadata and controls
196 lines (176 loc) · 4.59 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
[project]
authors = [{ name = "Tax Tracker Team" }]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.14",
]
description = "Personal tax calculation and W-4 optimization system"
license = "MIT"
name = "taxtracker"
readme = "README.md"
requires-python = ">=3.14"
version = "1.12.2"
dependencies = [
"fastapi>=0.141.1",
"pydantic-settings>=2.14.2",
"pydantic>=2.13.4",
"python-dateutil>=2.9.0.post0",
"python-multipart>=0.0.32",
"uvicorn[standard]>=0.52.1",
]
[project.optional-dependencies]
build = ["uv>=0.12.1,<0.13"]
[project.scripts]
taxtracker = "taxtracker.cli.app:main"
[build-system]
build-backend = "uv_build"
requires = ["uv_build>=0.12.1,<0.13"]
[tool.semantic_release]
build_command = """
python -m pip install -e '.[build]'
uv lock --upgrade-package "$PACKAGE_NAME"
git add uv.lock
"""
commit_message = "{version}\n\n[skip ci]\n\nAutomatically generated by python-semantic-release"
commit_parser = "conventional"
tag_format = "v{version}"
version_toml = ["pyproject.toml:project.version"]
[tool.semantic_release.commit_parser_options]
ignore_merge_commits = true
minor_tags = ["feat"]
parse_squash_commits = true
patch_tags = ["fix", "perf"]
[tool.ty.environment]
python-version = "3.14"
[tool.ty.src]
exclude = ["tests/**"]
include = ["src/**/*.py"]
[tool.ty.rules]
possibly-unresolved-reference = "warn"
[tool.ty.terminal]
output-format = "full"
[tool.pytest.ini_options]
addopts = [
"--cov-fail-under=80",
"--cov-report=html",
"--cov-report=term-missing",
"--cov=taxtracker",
"--strict-markers",
"-v",
]
asyncio_mode = "auto"
markers = [
"integration: Integration tests",
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"unit: Unit tests",
]
python_classes = ["Test*"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
testpaths = ["tests"]
[tool.coverage.run]
omit = [
"*/__init__.py",
"*/conftest.py",
"*/tests/*",
]
source = ["src/taxtracker"]
[tool.coverage.report]
exclude_lines = [
"def __repr__",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
"pass",
"pragma: no cover",
"raise NotImplementedError",
]
[tool.ruff]
line-length = 120
target-version = "py314"
[tool.ruff.format]
indent-style = "space"
skip-magic-trailing-comma = false
[tool.ruff.lint]
ignore = ["FBT001", "FBT002", "PLR0913", "PLR0915"]
select = [
# all possible codes as of this ruff version are listed here,
# ones we don't want/need are commented out to make it clear
# which have been omitted on purpose vs which ones get added
# in new ruff releases and should be considered for enabling
"ANN", # flake8-annotations
"C90", # mccabe
"E",
"F", # pyflakes
"I", # isort
"N", # PEP8 naming
"S", # flake8-bandit
"UP", # pyupgrade
"W", # pycodestyle
"YTT", # flake8-2020
# "BLE", # flake8-blind-except
"A", # flake8-builtins
"B", # flake8-bugbear
"FBT", # flake8-boolean-trap
# "COM", # flake8-commas
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"T10", # flake8-debugger
# "DJ", # flake8-django
# "EM", # flake8-errmsg
# "EXE", # flake8-executable
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
# "G", # flake8-logging-format
# "INP", # flake8-no-pep420
"ARG", # flake8-unused-arguments
"ERA", # eradicate
"PIE", # flake8-pie
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"PYI", # flake8-pyi
"Q", # flake8-quotes
"RET", # flake8-return
"RSE", # flake8-raise
"SIM", # flake8-simplify
"SLF", # flake8-self
"T20", # flake8-print
"TC", # flake8-type-checking
"TID", # flake8-tidy-imports
# "PD", # pandas-vet
"PGH", # pygrep-hooks
"PL", # pylint
# "TRY", # tryceratops
# "NPY", # NumPy-specific rules
"FAST", # flake8-fastapi
"FURB", # refurb
"LOG", # flake8-logging
"PERF", # perflint
"RUF", # Ruff-specific rules
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"ANN001",
"ANN201",
"ANN202",
"E501",
"ERA001",
"PLR2004",
"S101",
"SLF001",
]
"__init__.py" = ["F401"]
"scripts/*" = ["DTZ011", "S310", "T201"]
[dependency-groups]
dev = [
"httpx2>=2.10.0,<3",
"pre-commit>=4.6.1,<5",
"pytest-asyncio>=1.4.0,<2",
"pytest-cov>=7.1.0,<8",
"pytest>=9.1.1,<10",
"ruff>=0.16.2,<0.17",
"ty>=0.0.69,<0.1",
"types-python-dateutil>=2.9.0.20260807",
]