Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
167 lines (149 loc) · 4.38 KB
/
Copy pathpyproject.toml
File metadata and controls
167 lines (149 loc) · 4.38 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
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling", "uv-dynamic-versioning"]
[dependency-groups]
dev = [
"black>=25.1,<27.0",
"pre-commit~=4.0",
]
docs = [
"sphinx>=7.2,<9.0",
]
test = [
"coverage~=7.3",
"mypy>=1.19,<3.0",
"pytest~=9.0",
]
[project]
authors = [
{email = "zoola969@gmail.com", name = "Alexander Dmitriev"},
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"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 :: 3.15",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries",
"Typing :: Typed",
]
dependencies = []
description = "Custom Mapping with TTL and LRU support."
dynamic = ["version"]
keywords = ["cache", "dict", "expire", "expired", "lru", "lru-cache", "mapping", "time-to-live", "ttl"]
license = {file = "LICENSE"}
name = "ttlru-map"
readme = "README.md"
requires-python = ">=3.10"
[project.urls]
Changelog = "https://github.com/zoola969/python_ttlru_map/blob/master/CHANGELOG.md"
Documentation = "https://python-ttlru-map.readthedocs.io/en/latest/"
Homepage = "https://github.com/zoola969/python_ttlru_map"
Issues = "https://github.com/zoola969/python_ttlru_map/issues"
Repository = "https://github.com/zoola969/python_ttlru_map.git"
[tool.black]
color = true
line-length = 120
[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]
addopts = [
"--code-highlight=yes",
"--color=yes",
"--strict-config",
"--strict-markers",
"-vv",
]
[tool.ruff]
line-length = 120
output-format = "full"
show-fixes = true
[tool.ruff.lint]
allowed-confusables = ["ρ", "−", "∗"]
extend-safe-fixes = [
"ANN204",
"UP007",
]
fixable = ["ALL"]
ignore = [
"A003", # Class attribute {name} is shadowing a python builtin
"AIR", # airflow
"COM812", # Trailing comma missing — conflicts with ruff-format
"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
"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"