-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (74 loc) · 2.13 KB
/
pyproject.toml
File metadata and controls
90 lines (74 loc) · 2.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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "hublot"
dynamic = ["version"]
description = "A thin wrapper around Requests that adds caching and throttling"
authors = [{name = "Hervé Saint-Amand"}]
readme = "README.md"
requires-python = ">=3.6"
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
]
dependencies = [
"chardet>=3.0.2,<5", # version req copied from requests
"dataclasses>=0.8,<1; python_version<'3.7'",
"requests>=2.25,<3",
]
[project.optional-dependencies]
pycurl = [
"pycurl>=7,<8",
]
[project.urls]
Homepage = "https://github.com/saintamh/hublot"
[tool.setuptools]
packages = ["hublot"]
zip-safe = false # https://mypy.readthedocs.io/en/latest/installed_packages.html#creating-pep-561-compatible-packages
[tool.setuptools.dynamic]
version = {attr = "hublot.version.HUBLOT_VERSION"}
[tool.setuptools.package-data]
hublot = ["py.typed"]
[tool.mypy]
color_output = false
[[tool.mypy.overrides]]
module = "chardet.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
# There's a types-pycurl module, but it doesn't seem to match the API that I'm
# using at all, every single call gets an error even though they work.
module = "pycurl.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "setuptools.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "urllib3.*"
ignore_missing_imports = true
[tool.ruff]
line-length = 132
[tool.ruff.lint]
select = [
"F", # Pyflakes
"E", # Pycodestyle Errors
"W", # Pycodestyle Warnings
"I", # isort
"N", # naming
"UP", # pyupgrade
"PL", # pylint
]
ignore = [
"N818", # Exception class names must end in "Error"
"PLR2004", # Magic value used in comparison
# These are sound rules but we ignore them because we want our code to be
# backwards-compatible with older Pythons, so we allow e.g. using
# `typing.Tuple` etc
"UP006",
"UP035",
]
[tool.ruff.lint.isort]
force-sort-within-sections = true
[tool.ruff.lint.pylint]
max-args = 6