-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
188 lines (172 loc) · 5.54 KB
/
pyproject.toml
File metadata and controls
188 lines (172 loc) · 5.54 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
[build-system]
requires = ["uv_build>=0.7.19,<0.8.0"]
build-backend = "uv_build"
[project]
name = "relaycli"
version = "0.0.1.dev0"
description = "Open-source IMAP-native replacement for Gmail API"
requires-python = ">=3.11,<4.0"
license = { file = "LICENSE" }
authors = [{ name = "Relay team", email = "support@relaycli.com" }]
readme = "README.md"
keywords = ["cli", "imap", "smtp", "gmail", "outlook", "email", "inbox"]
dependencies = [
"typer>=0.16.0,<1.0.0",
"rich>=13.0.0,<14.0.0",
"questionary>=2.0.0,<3.0.0",
"pydantic>=2.10.0,<3.0.0",
"email-validator>=2.0.0,<3.0.0",
"cryptography>=44.0.0,<46.0.0",
"beautifulsoup4>=4.12.3,<5.0.0",
"html2text>=2025.4.15",
]
classifiers = [
# https://pypi.org/classifiers/
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Framework :: Pydantic",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Communications :: Email",
"Topic :: Communications :: Email :: Post-Office",
"Topic :: Communications :: Email :: Post-Office :: IMAP",
"Topic :: Communications :: Email :: Post-Office :: POP3",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: User Interfaces",
"Topic :: Software Development :: Version Control :: Git",
"Typing :: Typed",
]
[project.optional-dependencies]
quality = [
"ruff==0.14.6",
"ty==0.0.1a14",
"pre-commit==4.2.0",
]
test = [
"pytest==8.4.1",
"pytest-cov==6.2.1",
"pytest-pretty==1.3.0",
"pytest-mock==3.14.1",
]
[project.scripts]
relay = "relay.cli.main:app"
[project.urls]
homepage = "https://relaycli.com"
repository = "https://github.com/relaycli/relay"
documentation = "https://docs.relaycli.com"
issues = "https://github.com/relaycli/relay/issues"
releasenotes = "https://github.com/relaycli/relay/releases"
logo = "https://zugjkckdxhiamdlkxfmv.supabase.co/storage/v1/object/public/assets//logo_dark.svg"
[tool.uv.build-backend]
module-name = "relay"
module-root = ""
[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true
[tool.coverage.run]
source = ["relay"]
[tool.ruff]
line-length = 120
target-version = "py311"
preview = true
[tool.ruff.lint]
select = [
"ERA", # eradicate
"FAST", # FastAPI
"YTT", # flake8-2020
"ANN", # flake8-annotations
"ASYNC", # flake8-async
"S", # flake8-bandit
"BLE", # flake8-blind-except
"B", # flake8-bugbear
"A", # flake8-builtins
"COM", # flake8-commas
"C4", # flake8-comprehensions
"CPY", # flake8-copyright
"DTZ", # flake8-datetimez
"T10", # flake8-debugger
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"LOG", # flake8-logging
"PIE", # flake8-pie
"T20", # flake8-print
"PYI", # flake8-pyi
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RET", # flake8-return
"SLF", # flake8-self
"SIM", # flake8-simplify
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"FLY", # flynt
"I", # isort
"NPY", # numpy
"N", # pep8-naming
"PERF", # perflint
"E", # pycodestyle errors
"W", # pycodestyle warnings
"DOC", # pydoclint
"D", # pydocstyle
"F", # pyflakes
"PGH", # pygrep-hooks
"PL", # pylint
"UP", # pyupgrade
"FURB", # refurb
"RUF", # ruff specific
"TRY", # tryceratops
]
ignore = [
"E501", # line too long, handled by formatting
"B904", # raise from
"F403", # star imports
"E731", # lambda assignment
"C416", # list comprehension to list()
"ANN002", # missing type annotations on *args
"ANN003", # missing type annotations on **kwargs
"COM812", # trailing comma missing
"ISC001", # implicit string concatenation (handled by format)
"PLR", # Pylint refactor
"TRY003", # Avoid specifying long messages outside the exception class
"D203", # incorrect-blank-line-before-class
"D213", # multi-line-summary-second-line
"D413", # Missing blank line after last section
"D100", # Missing docstring in public module
"DOC502", # Raised exception is not explicitly raised (not working with custom exceptions)
]
exclude = [".git"]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
[tool.ruff.lint.isort]
known-first-party = ["tests", "relay"]
known-third-party = ["typer", "aioimaplib", "pydantic"]
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = ["I001", "F401", "CPY001", "D104"]
"**/version.py" = ["CPY001"]
".github/**.py" = ["D", "T201", "ANN"]
"tests/**.py" = ["D103", "CPY001", "S101", "T201", "ANN001", "ANN201", "ANN202", "ARG001", "RUF029", "RUF030", "DTZ003", "PT003", "DOC", "D", "SLF"]
"relay/cli/**.py" = ["ANN", "BLE001", "DOC"]
"relay/**.py" = ["PT028"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--cov=relay"
[tool.ty.environment]
python-version = "3.11"
python-platform = "linux"
[tool.ty.rules]
unresolved-import = "warn"