-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
170 lines (156 loc) · 3.86 KB
/
pyproject.toml
File metadata and controls
170 lines (156 loc) · 3.86 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
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[project]
authors = [
{name = "Justin Flannery", email = "juftin@juftin.com"}
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Development Status :: 5 - Production/Stable",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy"
]
dependencies = [
"click>=8.0.1",
"pydantic>=2,<3",
"rich>=10.0.0",
"httpx",
"importlib_metadata>=3.6",
"click-plugins>=1.1.1"
]
description = "A simple Python SDK around the Lunch Money Developer API"
version = "1.4.3"
keywords = ["lunchmoney", "python", "pydantic", "api-client"]
license = "MIT"
name = "lunchable"
readme = "README.md"
requires-python = ">=3.9,<4"
[project.optional-dependencies]
all = [
"lunchable-primelunch",
"lunchable-pushlunch",
"lunchable-splitlunch"
]
plugins = [
"lunchable-primelunch",
"lunchable-pushlunch",
"lunchable-splitlunch"
]
primelunch = ["lunchable-primelunch"]
pushlunch = ["lunchable-pushlunch"]
splitlunch = ["lunchable-splitlunch"]
[project.scripts]
lunchable = "lunchable._cli:cli"
[project.urls]
Changelog = "https://github.com/juftin/lunchable/releases"
Discussions = "https://github.com/juftin/lunchable/discussions"
Docker = "https://hub.docker.com/r/juftin/lunchable"
Documentation = "https://github.com/juftin/lunchable#readme"
Issues = "https://github.com/juftin/lunchable/issues"
Source = "https://github.com/juftin/lunchable"
[dependency-groups]
dev = [
# Testing
"pytest",
"pytest-cov",
"pytest-mock",
"vcrpy~=5.1.0",
# Linting
"mypy>=1.6.1",
"ruff~=0.1.7"
]
docs = [
"markdown-callouts",
"markdown-exec",
"mkdocs",
"mkdocs-autorefs",
"mkdocs-click",
"mkdocs-gen-files",
"mkdocs-literate-nav",
"mkdocs-material",
"mkdocs-section-index",
"mkdocstrings",
"mkdocstrings-python",
"pymdown-extensions",
"griffe-fieldz"
]
[tool.coverage.paths]
lunchable = ["lunchable", "*/lunchable/lunchable"]
tests = ["tests", "*/lunchable/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:"
]
[tool.coverage.run]
branch = true
omit = [
"lunchable/_version.py"
]
parallel = true
source_pkgs = ["lunchable", "tests"]
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = true
disallow_untyped_defs = true
follow_imports = "silent"
no_implicit_reexport = true
plugins = [
"pydantic.mypy"
]
warn_redundant_casts = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = [
"pytest.*"
]
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true
[tool.pytest.ini_options]
addopts = [
"-v",
"--cov=lunchable",
"--cov-report=term-missing",
"--cov-report=xml:coverage.xml",
"--junitxml=pytest.xml"
]
[tool.ruff]
ignore = [
"E501", # line too long, handled by black
"PLR0913", # Too many arguments to function call
"PLW2901", # Outer for loop variable overwritten by inner assignment target
"RUF001", # String contains ambiguous unicode character `’`
"PLR2004", # Magic value used in comparison
"RUF012" # Mutable class attributes should be annotated with `typing.ClassVar`
]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"Q", # flake8-quotes
"B", # flake8-bugbear
"PLE", # pylint
"PLR", # pylint
"PLW", # pylint
"RUF", # ruff
"C90" # mccabe
]
[tool.ruff.per-file-ignores]
"tests/**" = [
"PLR2004" # Magic value used in comparison
]