-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
121 lines (105 loc) · 2.15 KB
/
pyproject.toml
File metadata and controls
121 lines (105 loc) · 2.15 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
[project]
name = "cudo-compute-sdk"
version = "0.0.3"
description = "The Python SDK for Cudo Compute distributed compute platform."
authors = [
{name = "jamesbeedy", email = "james@vantagecompute.ai"}
]
readme = "README.md"
license = {text = "Apache-2.0"}
requires-python = ">=3.12"
dependencies = [
"httpx>=0.28.1",
"pydantic>=2.0.0",
]
[tool.hatch.build.targets.wheel]
packages = ["cudo_compute_sdk"]
exclude = [
"scripts",
"docusaurus",
"git-cliff-*",
"justfile",
"docs",
"tests",
]
[tool.hatch.build.targets.sdist]
exclude = [
".gitignore",
".github",
"scripts",
"docusaurus",
"git-cliff-*",
"justfile",
"docs",
"tests",
]
[tool.hatch.metadata]
allow-direct-references = true
[project.optional-dependencies]
dev = [
# Linting
"black",
"ruff",
"codespell",
"pyright",
# Testing
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"coverage[toml] ~= 7.8",
]
[tool.coverage.run]
branch = true
[tool.coverage.report]
show_missing = true
[tool.coverage.paths]
source = ["cudo_compute_sdk"]
[tool.pytest.ini_options]
minversion = "6.0"
log_cli_level = "INFO"
filterwarnings = [
"ignore::DeprecationWarning:juju.client.connection",
"ignore::DeprecationWarning:websockets.legacy",
]
# Spell checking tools configuration
[tool.codespell]
skip = ".venv,venv,icon.svg,.tox,.git,.mypy_cache,.ruff_cache,.pytest_cache,.vscode,.coverage,.venv,cover"
ignore-words-list = "aks"
# Formatting tools configuration
[tool.black]
line-length = 99
target-version = ["py312"]
# Linting tools configuration
[tool.ruff]
line-length = 99
lint.select = ["E", "W", "F", "C", "N", "D", "I001"]
lint.extend-ignore = [
"D203",
"D204",
"D213",
"D215",
"D400",
"D404",
"D406",
"D407",
"D408",
"D409",
"D413",
]
lint.ignore = ["E501", "D107"]
lint.per-file-ignores = { "**/tests/*" = [
"D100",
"D101",
"D102",
"D103",
"D104",
] }
extend-exclude = ["__pycache__", "*.egg_info"]
[tool.ruff.lint.mccabe]
max-complexity = 15
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"pytest-cov>=7.0.0",
]