-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
87 lines (76 loc) · 1.88 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
[tool.poetry]
name = "crawlab-sdk"
version = "0.7.0rc6"
description = "Python SDK for Crawlab"
authors = ["Marvin Zhang <[email protected]>"]
readme = "README.md"
license = "BSD-3-Clause"
homepage = "https://github.com/crawlab-team/crawlab-python-sdk"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent"
]
packages = [
{ include = "crawlab" }
]
repository = "https://github.com/crawlab-team/crawlab-python-sdk"
[tool.poetry.dependencies]
python = "^3.9"
httpx = "^0.23.0"
rich = "^13.9.4"
pydantic = "^2.10.1"
[tool.poetry.group.dev.dependencies]
ruff = "^0.3.3"
pytest = "^8.3.3"
[tool.poetry.scripts]
crawlab-cli = "crawlab.cli:main"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"crawlab/grpc",
]
# Same as Black.
line-length = 88
indent-width = 4
# Assume Python 3.11
target-version = "py311"
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
select = ["E", "F", "I"]
ignore = []
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.isort]
# Configure import sections and ordering
known-first-party = ["crawlab"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
combine-as-imports = true
split-on-trailing-comma = true