forked from replicate/replicate-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
57 lines (52 loc) · 1.5 KB
/
pyproject.toml
File metadata and controls
57 lines (52 loc) · 1.5 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "replicate"
version = "0.8.1"
description = "Python client for Replicate"
readme = "README.md"
license = { file = "LICENSE" }
authors = [{ name = "Replicate, Inc." }]
requires-python = ">=3.8"
dependencies = ["packaging", "pydantic>1", "requests>2"]
optional-dependencies = { dev = [
"black",
"mypy",
"pytest",
"responses",
"ruff",
] }
[project.urls]
homepage = "https://replicate.com"
repository = "https://github.com/replicate/replicate-python"
[tool.pytest.ini_options]
testpaths = "tests/"
[tool.ruff]
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
]
[tool.ruff.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
]