-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (87 loc) · 2.65 KB
/
Copy pathpyproject.toml
File metadata and controls
104 lines (87 loc) · 2.65 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
[project]
name = "gcache"
version = "2.0.5"
description = "Fine grained caching."
authors = [{ name = "Galileo Technologies Inc.", email = "team@rungalileo.io" }]
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"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",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dynamic = ["dependencies"]
[project.urls]
homepage = "https://github.com/rungalileo/gcache"
repository = "https://github.com/rungalileo/gcache"
[tool.poetry.dependencies]
python = "^3.10"
pydantic = "^2.11.4"
prometheus-client = ">=0.22.1,<1.0.0"
cachetools = ">=5.5.2"
types-cachetools = "^6.2.0.20250827"
redis = ">=5.0.0"
uvloop = ">=0.21.0,<1.0.0"
[tool.poetry.group.test.dependencies]
pytest = "^9.0.3"
pytest-xdist = "^3.6.1"
coverage = "^7.13.5"
pytest-cov = "^7.0.0"
pytest-asyncio = "^1.1.0"
redislite = "^6.2.912183"
[tool.poetry.group.dev.dependencies]
invoke = "^2.2.0"
ruff = "^0.12.11"
pytest-asyncio = "^1.1.0"
mypy = "^1.17.1"
pre-commit = "^4.3.0"
types-cachetools = "^6.2.0.20250827"
[build-system]
requires = ["poetry-core>=2.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
pythonpath = ["./src/"]
asyncio_default_fixture_loop_scope = "function"
# Linters and formatters.
[tool.ruff]
line-length = 120
fix = true
src = ["src"]
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I", "UP", "ASYNC"]
ignore = []
[tool.ruff.lint.isort]
known-first-party = ["galileo_core"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.docformatter]
style = "numpy"
recursive = true
wrap-summaries = 120
wrap-descriptions = 120
[tool.mypy]
mypy_path = ["src"]
ignore_missing_imports = true
disallow_untyped_defs = true
plugins = ["pydantic.mypy"]
# Release.
[tool.semantic_release]
version_toml = ["pyproject.toml:project.version"]
version_source = "tag"
commit_message = "chore(release): v{version}"
[tool.semantic_release.commit_parser_options]
# Release patch version on these tags,
# https://python-semantic-release.readthedocs.io/en/latest/configuration.html#commit-parser-options-dict-str-any
patch_tags = ["fix", "perf", "chore", "docs", "style", "refactor"]