-
Notifications
You must be signed in to change notification settings - Fork 219
/
pyproject.toml
93 lines (83 loc) · 2.41 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "replicate"
version = "1.0.3"
description = "Python client for Replicate"
readme = "README.md"
license = { file = "LICENSE" }
authors = [{ name = "Replicate, Inc." }]
requires-python = ">=3.8"
dependencies = [
"httpx>=0.21.0,<1",
"packaging",
"pydantic>1.10.7",
"typing_extensions>=4.5.0",
]
[project.urls]
homepage = "https://replicate.com"
repository = "https://github.com/replicate/replicate-python"
[tool]
rye = { dev-dependencies = [
"pytest>=8.1.1",
"pylint>=3.1.0",
"pyright>=1.1.358",
"pytest-asyncio>=0.23.6",
"pytest-recording>=0.13.1",
"respx>=0.21.1",
"ruff>=0.3.7",
] }
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = "tests/"
[tool.setuptools]
packages = ["replicate"]
[tool.setuptools.package-data]
"replicate" = ["py.typed"]
[tool.pylint.main]
disable = [
"C0301", # Line too long
"C0413", # Import should be placed at the top of the module
"C0114", # Missing module docstring
"R0801", # Similar lines in N files
"W0212", # Access to a protected member
"W0622", # Redefining built-in
"R0903", # Too few public methods
]
good-names = ["id"]
[tool.ruff.lint]
select = [
"E", # pycodestyle error
"F", # Pyflakes
"I", # isort
"W", # pycodestyle warning
"UP", # pyupgrade
"S", # flake8-bandit
"BLE", # flake8-blind-except
"FBT", # flake8-boolean-trap
"B", # flake8-bugbear
"ANN", # flake8-annotations
]
ignore = [
"E501", # Line too long
"S113", # Probable use of requests call without timeout
"ANN001", # Missing type annotation for function argument
"ANN002", # Missing type annotation for `*args`
"ANN003", # Missing type annotation for `**kwargs`
"ANN101", # Missing type annotation for self in method
"ANN102", # Missing type annotation for cls in classmethod
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in {name}
"W191", # Indentation contains tabs
"UP037", # Remove quotes from type annotation
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101", # Use of assert
"S106", # Possible use of hard-coded password function arguments
"ANN201", # Missing return type annotation for public function
"ANN202", # Missing return type annotation for private function
]
[tool.pyright]
venvPath = "."
venv = ".venv"