-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
173 lines (146 loc) · 3.29 KB
/
pyproject.toml
File metadata and controls
173 lines (146 loc) · 3.29 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
[project]
name = "flashback"
description = "A collection of python utilities you might have written a couple of times already"
readme = "README.md"
version = "4.1.0"
authors = [
{ name = "Paul Renvoisé", email = "renvoisepaul@gmail.com" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
]
license-files = [
"LICENSE",
]
requires-python = ">=3.12"
dependencies = [
"cryptography>=46.0.5,<47.0.0",
"pygments>=2.19.0",
"pymemcache>=4.0.0,<5.0.0",
"redis>=7.1.0,<8.0.0",
"unidecode>=1.3.0",
]
[project.urls]
homepage = "https://github.com/PaulRenvoise/flashback"
repository = "https://github.com/PaulRenvoise/flashback"
[build-system]
requires = ["uv_build"]
build-backend = "uv_build"
[dependency-groups]
test = [
"mockredispy==2.9.3",
"pytest==9.0.2",
"pytest-clarity==1.0.1",
"pytest-cov==7.0.0",
"pytest-randomly==4.0.1",
]
dev = [
"mkdocs-coverage==2.0.0",
"mkdocs-material==9.7.1",
"mkdocstrings==1.0.2",
"ruff==0.15.0",
"pyrefly==0.51.0",
{include-group = "test"},
]
[tool.ruff]
line-length = 120
target-version = 'py313'
[tool.ruff.lint]
select = [
"F",
"E",
"W",
"N",
"YTT",
"ASYNC",
"B",
"BLE",
"A",
"COM",
"C4",
"EXE",
"FA",
"ISC",
"ICN",
"LOG",
"G",
"INP",
"PIE",
"T20",
"PYI",
"Q",
"RSE",
"RET",
"SLF",
"SIM",
"TCH",
"INT",
"ARG",
"FLY",
"PERF",
"RUF",
"PL",
"PT",
"UP",
]
ignore = [
"SIM108",
"TC003",
"TC002",
"B905",
]
[tool.ruff.lint.pylint]
allow-magic-value-types = ["str", "bytes", "int"]
[tool.pyrefly]
python-version = "3.14"
ignore-missing-imports = ["*"]
[tool.pytest]
addopts = ["--cov=flashback", "--cov-report=term-missing", "--cov-report=html", "-vv", "--durations=5"]
testpaths = ["tests"]
python_files = ["*_test.py"]
python_classes = ["*Test"]
python_functions = ["*_test"]
[tool.coverage.run]
# Whether to measure branch coverage in addition to statement coverage
branch = true
parallel = true
omit = [
"tests/*",
".eggs/*",
".tox/*",
"docs/*",
"setup.py",
"flashback/formatting/locales/*"
]
[tool.coverage.report]
format = "text"
exclude_also = [
# Don't complain about missing debug-only code:
"def __repr__",
"if self\\.debug",
# Don't complain if tests don't hit abstract members:
"@abstractmethod",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:"
]
# When running a summary report, show missing lines. See Coverage summary for more information
show_missing = true
fail_under = 95
[tool.uv.build-backend]
module-name = "flashback"
module-root = ""