-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
195 lines (176 loc) · 5.01 KB
/
Copy pathpyproject.toml
File metadata and controls
195 lines (176 loc) · 5.01 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
189
190
191
192
193
194
195
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling", "uv-dynamic-versioning"]
[dependency-groups]
dev = [
"black~=26.0",
"pre-commit~=4.0",
]
docs = [
"mkdocs-material~=9.6",
"mkdocstrings[python]>=0.29,<2.0",
"mkdocs~=1.6",
]
test = [
"coverage~=7.3",
"mypy~=2.0",
"pytest-asyncio~=1.0",
"pytest~=9.0",
]
[project]
authors = [
{email = "zoola969@gmail.com", name = "Alexander Dmitriev"},
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries",
"Typing :: Typed",
]
dependencies = [
"ttlru-map~=1.1",
"typing-extensions~=4.0",
]
description = "Sync and async cache with TTL and LRU support."
dynamic = ["version"]
keywords = ["cache", "lru", "lru-cache", "time-to-live", "ttl"]
license = {file = "LICENSE"}
name = "cachium"
readme = "README.md"
requires-python = ">=3.10"
[project.urls]
Changelog = "https://github.com/zoola969/cachium/blob/main/CHANGELOG.md"
Documentation = "https://zoola969.github.io/cachium/"
Homepage = "https://github.com/zoola969/cachium"
Issues = "https://github.com/zoola969/cachium/issues"
Repository = "https://github.com/zoola969/cachium.git"
[tool.black]
color = true
line-length = 120
[tool.coverage.report]
exclude_also = [
"def __repr__",
"if sys.version_info",
"if TYPE_CHECKING",
"if typing.TYPE_CHECKING",
]
omit = [
"tests/*",
]
[tool.hatch.version]
source = "uv-dynamic-versioning"
[tool.mypy]
enable_error_code = [
"exhaustive-match",
"explicit-override",
"ignore-without-code",
"possibly-undefined",
"redundant-expr",
"redundant-self",
"truthy-bool",
"unused-awaitable",
]
strict = true
warn_unreachable = true
[tool.pytest.ini_options]
addopts = [
"--code-highlight=yes",
"--color=yes",
"--log-cli-level=DEBUG",
"--strict-config",
"--strict-markers",
"-vv",
]
asyncio_default_fixture_loop_scope = "session"
asyncio_mode = "auto"
[tool.ruff]
line-length = 120
output-format = "full"
show-fixes = true
[tool.ruff.lint]
allowed-confusables = ["ρ", "−", "∗"]
extend-safe-fixes = [
"ANN204",
"EM101",
"EM102", # f-string-in-exception
"TC002", # Move third-party imports into a type-checking block
"TC003", # Move standard imports into a type-checking block
"TCH001",
"UP007",
]
fixable = ["ALL"]
ignore = [
"A003", # Class attribute {name} is shadowing a python builtin
"AIR", # airflow
"COM812", # conflicts with ruff-format trailing comma management
"CPY", # flake8-copyright
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D107", # Missing docstring in __init__
"D203", # 1 blank line required before class docstring
"D213", # Multi-line docstring summary should start at the second line
"PLC1901", # compare-to-empty-string
"PYI041", # redundant-numeric-union. Use `float` instead of `int | float`
]
select = ["ALL"]
[tool.ruff.lint.flake8-comprehensions]
allow-dict-calls-with-keyword-arguments = true
[tool.ruff.lint.flake8-pytest-style]
parametrize-values-type = "list"
[tool.ruff.lint.flake8-type-checking]
strict = true
[tool.ruff.lint.flake8-unused-arguments]
ignore-variadic-names = true
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401", # imported but unused
]
"docs/source/conf.py" = [
"A001", # variable is shadowing a python builtin
"INP001", # __init__ is missing
]
"tests/*" = [
"ANN201", # Missing return type annotation for public function
"ANN401", # Dynamically typed expressions are disallowed
"ARG001", # Unused function argument
"ARG005", # Unused lambda argument
"D101", # Missing docstring in public class
"D103", # Missing docstring in public function
"FBT001", # Boolean-typed positional argument in function definition
"PLR2004", # Magic value in comparison
"S101", # Use of assert detected
"S311", # Standard pseudo-random generators are not suitable for security/cryptographic purposes
"SLF001", # Private member accessed
]
[tool.ruff.lint.pylint]
allow-magic-value-types = []
max-args = 10
[tool.tomlsort]
all = true
ignore_case = true
in_place = true
no_block_comments = false
no_comments = false
no_footer_comments = false
no_header_comments = false
no_inline_comments = false
no_sort_tables = false
sort_inline_arrays = true
sort_inline_tables = true
sort_table_keys = true
spaces_before_inline_comment = 2
spaces_indent_inline_array = 4
trailing_comma_inline_array = true
[tool.uv]
default-groups = ["dev", "docs", "test"]
[tool.uv-dynamic-versioning]
fallback-version = "0.0.0"