-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
83 lines (69 loc) · 2.2 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
[tool.poetry]
name = "requests-ratelimiter"
version = "0.8.0"
description = "Rate-limiting for the requests library"
authors = ["Jordan Cook"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/JWCook/requests-ratelimiter"
repository = "https://github.com/JWCook/requests-ratelimiter"
documentation = "https://requests-ratelimiter.readthedocs.io"
keywords = ["requests", "rate-limiting", "leaky-bucket"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Typing :: Typed",
]
include = [
{format="sdist", path="*.md"},
{format="sdist", path="test"},
]
[tool.poetry.dependencies]
python = "^3.8"
pyrate-limiter = "<3.0"
requests = ">=2.20"
# Documentation dependencies needed for Readthedocs builds
furo = {optional=true, python=">=3.9", version="^2024.7"}
myst-parser = {optional=true, python=">=3.9", version=">=3.0"}
sphinx = {optional=true, python=">=3.9", version="^7.4"}
sphinx-autodoc-typehints = {optional=true, python=">=3.9", version=">2.0"}
sphinx-copybutton = {optional=true, python=">=3.9", version=">=0.5"}
[tool.poetry.extras]
docs = ["furo", "myst-parser", "sphinx", "sphinx-autodoc-typehints",
"sphinx-copybutton", "sphinxcontrib-apidoc"]
[tool.poetry.dev-dependencies]
coverage = "^7.2"
pre-commit = "^3.0"
pytest = "^8.0"
pytest-cov = ">=4.0"
pytest-xdist = ">=3.1"
requests-mock = ">=1.11"
requests-cache = ">=1.1"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.coverage.run]
branch = true
source = ['requests_ratelimiter']
[tool.coverage.html]
directory = 'test-reports'
[tool.coverage.xml]
output = 'test-reports/coverage.xml'
[tool.mypy]
ignore_missing_imports = true
[tool.ruff]
fix = true
unsafe-fixes = true
line-length = 100
output-format = 'grouped'
target-version = 'py38'
[tool.ruff.format]
quote-style = 'single'
[tool.ruff.lint]
select = ['B', 'C4', 'C90', 'E', 'F']
ignore = ['B023']
[tool.ruff.lint.isort]
known-first-party = ['test']
# Wrap lines to 100 chars, but don't error on unwrappable lines until 120 chars
[tool.ruff.lint.pycodestyle]
max-line-length = 120