-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathpyproject.toml
124 lines (103 loc) · 2.47 KB
/
pyproject.toml
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
[build-system]
requires = ["hatchling", "hatch-fancy-pypi-readme"]
build-backend = "hatchling.build"
[project]
name = "hishel"
dynamic = ["readme", "version"]
description = "Persistent cache implementation for httpx and httpcore"
license = "BSD-3-Clause"
requires-python = ">=3.9"
authors = [
{ name = "Kar Petrosyan", email = "[email protected]" },
]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Framework :: AsyncIO",
"Framework :: Trio",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP",
]
dependencies = [
"httpx>=0.28.0",
]
[project.optional-dependencies]
yaml = [
"pyyaml==6.0.1",
]
redis = [
"redis==5.0.4"
]
sqlite = [
"anysqlite>=0.0.5"
]
s3 = [
"boto3>=1.15.0,<=1.15.3; python_version < '3.12'",
"boto3>=1.15.3; python_version >= '3.12'"
]
[project.urls]
Homepage = "https://hishel.com"
Source = "https://github.com/karpetrosyan/hishel"
[tool.hatch.version]
path = "hishel/__init__.py"
[tool.hatch.build.targets.sdist]
include = [
"/hishel",
"/CHANGELOG.md",
"/README.md",
]
[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
path = "README.md"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
path = "CHANGELOG.md"
[tool.mypy]
strict = true
show_error_codes = true
warn_unused_ignores = false
exclude = ['venv', '.venv']
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
check_untyped_defs = true
[tool.pytest.ini_options]
addopts = ["-rxXs", "--strict-config", "--strict-markers"]
filterwarnings = []
[tool.coverage.run]
omit = [
"venv/*",
"hishel/_sync/*",
"hishel/_s3.py"
]
include = ["hishel/*", "tests/*"]
[tool.coverage.report]
exclude_also = [
'__repr__',
'raise NotImplementedError()'
]
[tool.ruff]
exclude = [
"hishel/_sync",
"hishel/__init__.py",
"tests/_sync",
]
line-length = 120
[tool.ruff.lint]
select = [
"E",
"F",
"W",
"I"
]
[tool.ruff.lint.isort]
combine-as-imports = true