-
Notifications
You must be signed in to change notification settings - Fork 21
/
pyproject.toml
163 lines (147 loc) · 3.66 KB
/
pyproject.toml
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
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "pymonzo"
description = "Modern Python API client for Monzo public API."
authors = [{name = "Paweł Adamczak", email = "pawel.ad@gmail.com"}]
readme = "README.md"
requires-python = ">=3.9"
license = {file = "LICENSE"}
keywords = ["monzo", "api"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Typing :: Typed",
]
dynamic = ["version"]
dependencies = [
"Authlib",
"httpx<0.28.0", # https://github.com/lundberg/respx/issues/277
"pydantic-settings",
"pydantic>2",
"typing_extensions; python_version<'3.11'",
]
[project.optional-dependencies]
tests = [
"coverage[toml]",
"freezegun",
"polyfactory",
"pytest",
"pytest-mock",
"pytest-recording",
"python-dotenv",
"respx",
"vcrpy-encrypt",
]
docs = [
"mkdocs",
"mkdocs-gen-files",
"mkdocs-include-markdown-plugin",
"mkdocs-literate-nav",
"mkdocs-material",
"mkdocs-section-index",
"mkdocstrings[python]",
]
dev = [
"pymonzo[tests,docs]",
# Code style
"black",
"interrogate",
"isort",
"ruff",
# Type checking
"mypy<1.11.0", # https://github.com/python/mypy/issues/17535
"rich",
# Misc
"flit",
"nox",
]
[project.urls]
Homepage = "https://pymonzo.pawelad.dev/"
Documentation = "https://pymonzo.readthedocs.io/"
GitHub = "https://github.com/pawelad/pymonzo"
Issues = "https://github.com/pawelad/pymonzo/issues"
[tool.black]
target-version = ["py39"]
[tool.coverage.run]
branch = true
parallel = true
source = ["src"]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"if TYPE_CHECKING:",
# TODO: Test optional `rich` support
"if RICH_AVAILABLE:",
]
[tool.interrogate]
ignore-init-module = true
ignore-nested-classes = true
fail-under = 95
[tool.isort]
profile = "black"
src_paths = ["src"]
[tool.mypy]
python_version = "3.9"
mypy_path = "src"
plugins = [
"pydantic.mypy",
]
[[tool.mypy.overrides]]
module = [
"authlib.integrations.base_client",
"authlib.integrations.httpx_client",
"vcr",
"vcrpy_encrypt",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra --import-mode=importlib --verbose"
testpaths = "tests"
pythonpath = "src"
[tool.ruff]
target-version = "py39"
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"ANN", # flake8-annotations
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"C90", # mccabe
"D", # pydocstyle
"DJ", # flake8-django
"E", # flake8
"F", # flake8
"N", # pep8-naming
"PT", # flake8-pytest-style
"S", # flake8-bandit
"SIM", # flake8-simplify
"T20", # flake8-print
"TRY", # tryceratops
"UP", # pyupgrade
]
ignore = [
"A003", # Class attribute is shadowing a python builtin
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in `**kwargs`
"D104", # Missing docstring in public package
"D106", # Missing docstring in public nested class
"N818", # Exception name should be named with an Error suffix
"S101", # Use of `assert` detected
"TRY003", # Avoid specifying long messages outside the exception class
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = true
mark-parentheses = true