-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
118 lines (102 loc) · 4.17 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
[project]
name = "fourtwonine"
authors = [
{ name = "beerpsi", email = "[email protected]" },
]
description = "Simple, flexible rate limits for Starlette and FastAPI"
license = "MIT"
keywords = ["rate limit", "fastapi", "starlette", "limits"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Framework :: FastAPI",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Typing :: Typed",
]
dependencies = [
"limits>=3.13.0",
"starlette",
"typing-extensions>=4.12.2",
]
readme = "README.md"
requires-python = ">= 3.9"
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/Liminova/fourtwonine#readme"
Repository = "https://github.com/Liminova/fourtwonine.git"
Issues = "https://github.com/Liminova/fourtwonine/issues"
[tool.rye]
managed = true
dev-dependencies = [
"ruff>=0.6.9",
"basedpyright>=1.18.3",
"uvicorn>=0.31.0",
"fastapi>=0.115.0"
]
[tool.basedpyright]
typeCheckingMode = "all"
reportDeprecated = false
[tool.ruff]
respect-gitignore = true
line-length = 90
[tool.ruff.lint]
extend-select = ["ALL"]
ignore = [
"ANN", # flake8-annotations (covered by pyright)
"EM", # flake8-errmsg
"FA100", # Add from __future__ import annotations to simplify {name}
"FIX", # flake8-fixme
"PLR0913", # Too many arguments to function call
"PLR0912", # Too many branches
"PLR0915", # Too many statements
"PLR2004", # Magic value used in comparison
"PLR1722", # Use `sys.exit()` instead of `exit`
"PLW2901", # `for` loop variable overwritten by assignment target
"PLE0605", # Invalid format for `__all__`, must be `tuple` or `list` (covered by pyright)
"PLR0911", # Too many return statements
"PLW0603", # Using the global statement is discouraged
"PLC0105", # `TypeVar` name does not reflect its covariance
"PLC0414", # Import alias does not rename original package (used by pyright for explicit re-export)
"RUF013", # PEP 484 prohibits implicit Optional (covered by pyright)
"RUF016", # Slice in indexed access to type (covered by pyright)
"TD003", # Missing issue link on the line following this TODO
"TRY002", # Create your own exception
"TRY003", # Avoid specifying long messages outside the exception class
"D10", # Missing docstring
"D203", # 1 blank line required before class docstring
"D205", # 1 blank line required between summary line and description
"D209", # Multi-line docstring closing quotes should be on a separate line
"D212", # Multi-line docstring summary should start at the first line
"D213", # Multi-line docstring summary should start at the second line
"D400", # First line should end with a period
"D401", # First line should be in imperative mood
"D403", # First word of the first line should be properly capitalized
"D404", # First word of the docstring should not be `This`
"D405", # Section name should be properly capitalized
"D406", # Section name should end with a newline
"D415", # First line should end with a period, question mark, or exclamation point
"D418", # Function/Method decorated with @overload shouldn't contain a docstring (vscode supports it)
"PT013", # Found incorrect import of pytest, use simple import pytest instead (only for bad linters that can't check the qualname)
"TD002", # Missing author in TODO
"CPY001", # missing-copyright-notice
"C901", # max-complexity
"ISC001", # single-line-implicit-string-concatenation (conflicts with formatter)
"COM812", # missing-trailing-comma (conflicts with formatter)
]
[tool.ruff.lint.pycodestyle]
ignore-overlong-task-comments = true
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.version]
path = "src/fourtwonine/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/fourtwonine"]