-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
157 lines (140 loc) · 3.42 KB
/
Copy pathpyproject.toml
File metadata and controls
157 lines (140 loc) · 3.42 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
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "monz"
description = "Simple CLI for your Monzo account."
authors = [{name = "Paweł Adamczak", email = "pawel.ad@gmail.com"}]
readme = "README.md"
requires-python = ">=3.9"
license = {file = "LICENSE"}
keywords = ["monzo", "cli"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"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.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Utilities",
]
dynamic = ["version"]
dependencies = [
"Babel",
"click",
"click-default-group",
"pymonzo>=2.2.1",
"rich",
"rich-click",
]
[project.optional-dependencies]
tests = [
"coverage[toml]",
"polyfactory",
"pytest",
"pytest-mock",
"time-machine",
]
docs = [
"mkdocs",
"mkdocs-gen-files",
"mkdocs-include-markdown-plugin",
"mkdocs-literate-nav",
"mkdocs-material",
"mkdocs-section-index",
"mkdocstrings[python]",
]
dev = [
"monz[tests,docs]",
# Code style
"black",
"interrogate",
"isort",
"ruff",
# Type checking
"mypy",
# Misc
"flit",
"nox",
]
[project.urls]
Homepage = "https://monz.pawelad.dev/"
Documentation = "https://monz.readthedocs.io/"
GitHub = "https://github.com/pawelad/monz"
Issues = "https://github.com/pawelad/monz/issues"
[project.scripts]
monz = "monz.__main__:main"
[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:",
'if __name__ == "__main__":'
]
[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 = [
"click_default_group",
]
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