forked from JWCook/requests-ratelimiter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
83 lines (69 loc) · 2.12 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.6.1"
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.7"
pyrate-limiter = "<3.0"
requests = ">=2.20"
# Documentation dependencies needed for Readthedocs builds
furo = {optional=true, version="^2023.3"}
myst-parser = {optional=true, version=">=1.0"}
sphinx = {optional=true, version="^5.2"}
sphinx-autodoc-typehints = {optional=true, version="^1.22"}
sphinx-copybutton = {optional=true, 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 = "^2.21"
pytest = "^7.2"
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