-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
80 lines (68 loc) · 1.5 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
[project]
name = "simple-token-bucket"
dynamic = ["version"]
authors = [
{ name="Erle Carrara", email="[email protected]" },
]
description = ""
readme = "README.md"
requires-python = ">=3.8"
keywords = []
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
[project.optional-dependencies]
redis = [
"redis"
]
[project.urls]
Source = "https://github.com/buserbrasil/simple-token-bucket"
Issues = "https://github.com/buserbrasil/simple-token-bucket/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "simple_token_bucket/__init__.py"
[tool.hatch.envs.test]
dependencies = [
"pytest",
"pytest-cov",
"fakeredis<=2.21.3",
]
[[tool.hatch.envs.test.matrix]]
python = ["3.11", "3.10", "3.9", "3.8"]
[tool.hatch.envs.test.scripts]
cov = "pytest --cov=simple_token_bucket {args:tests}"
[tool.hatch.envs.default]
dependencies = [
"black>=23.3",
"pyright>=1.1",
"ruff>=0.0.274",
"pytest",
"sphinx",
"redis"
]
[tool.hatch.envs.default.scripts]
typing = "pyright {args:simple_token_bucket tests}"
style = [
"ruff {args:.}",
"black --check --diff {args:.}"
]
fmt = [
"black {args:.}",
"ruff --fix {args:.}",
"style"
]
doc = [
"sphinx-build -b html docs _build/html"
]
[tool.black]
target-version = ["py38"]
line-length = 120
[tool.ruff]
target-version = "py38"
line-length = 120
[tool.ruff.isort]
known-first-party = ["simple_token_bucket"]