-
-
Notifications
You must be signed in to change notification settings - Fork 128
Expand file tree
/
Copy pathpyproject.toml
More file actions
152 lines (134 loc) · 3.13 KB
/
pyproject.toml
File metadata and controls
152 lines (134 loc) · 3.13 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
[build-system]
build-backend = "hatchling.build"
requires = [
"hatchling>=1.14.0",
"hatch-vcs>=0.4.0",
]
[project]
name="Flask-Limiter"
readme = "README.rst"
authors = [{ name = "Ali-Akber Saifee", email = "ali@indydevs.org"}]
maintainers = [{ name = "Ali-Akber Saifee", email = "ali@indydevs.org"}]
requires-python = ">=3.10"
description = "Rate limiting for flask applications"
license="MIT"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Flask",
"Intended Audience :: Developers",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"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",
]
dependencies = [
"limits>=3.13",
"Flask>=2",
"ordered-set>4,<5",
"typing_extensions>=4.3",
]
dynamic = ["version"]
[project.entry-points."flask.commands"]
limiter = "flask_limiter.commands:cli"
[project.urls]
Homepage = "https://flask-limiter.readthedocs.org"
Source = "https://github.com/alisaifee/flask-limiter"
Documentation = "https://flask-limiter.readthedocs.org"
[project.optional-dependencies]
cli = [
"rich>=12,<15"
]
redis = [
"limits[redis]",
]
memcached = [
"limits[memcached]",
]
mongodb = [
"limits[mongodb]",
]
valkey = [
"limits[valkey]"
]
[tool.hatch.version]
source = "vcs"
[tool.hatch.version.raw-options]
version_scheme = "no-guess-dev"
local_scheme = "no-local-version"
[tool.hatch.build.targets.wheel]
packages = ["flask_limiter"]
[tool.hatch.build.hooks.vcs]
version-file = "flask_limiter/_version.py"
[dependency-groups]
test = [
"Flask[async]>=2.0.0",
"flask-restful",
"flask-restx",
"asgiref>=3.2",
"redis",
"pymemcache",
"pymongo",
"coverage<8",
"hiro>0.1.6",
"pytest",
"pytest-cov",
"pytest-check",
"pytest-mock",
"lovely-pytest-docker",
]
dev = [
"ruff",
"keyring",
"mypy",
"rich>=12,<15",
{include-group = "test"},
]
ci = [
{include-group = "dev"},
]
docs = [
"furo==2025.9.25",
"Sphinx>4,<9",
"sphinx-autobuild==2024.10.3",
"sphinx-copybutton==0.5.2",
"sphinx-inline-tabs==2023.4.21",
"sphinx-issues==5.0.1",
"sphinxext-opengraph==0.13.0",
"sphinx-paramlinks==0.6.0",
"sphinxcontrib-programoutput==0.18",
]
[tool.mypy]
strict = true
check_untyped_defs = true
disallow_any_generics = true
disallow_any_unimported = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
disallow_untyped_decorators = true
show_error_codes = true
warn_return_any = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = [
"werkzeug",
"flask_limiter._compat.*",
"flask_limiter._version",
]
ignore_errors = true
[tool.ruff]
line-length=100
indent-width = 4
exclude = ["_version.py"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]