-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
91 lines (81 loc) · 2.51 KB
/
Copy pathpyproject.toml
File metadata and controls
91 lines (81 loc) · 2.51 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
[build-system]
requires = ["uv_build>=0.12,<0.13"]
build-backend = "uv_build"
[project]
name = "clevercloud-sdk"
version = "0.2.2"
description = "Python SDK for Clever Cloud"
readme = "README.md"
license = "Apache-2.0"
# Explicit: unlike hatchling, uv_build does not ship the licence file unless
# it is listed, and Apache-2.0 requires redistributing it with the work.
license-files = ["LICENSE"]
requires-python = ">=3.11"
authors = [
{ name = "David LEGRAND", email = "david.legrand@clever.cloud" }
]
keywords = ["clever-cloud", "cloud", "paas", "api", "sdk"]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = [
"httpx>=0.28.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.24",
"pytest-cov>=5.0",
"mypy>=1.11",
"ruff>=0.6",
]
[project.urls]
Homepage = "https://github.com/CleverCloud/clevercloud-sdk-python"
Documentation = "https://github.com/CleverCloud/clevercloud-sdk-python#readme"
Repository = "https://github.com/CleverCloud/clevercloud-sdk-python"
Issues = "https://github.com/CleverCloud/clevercloud-sdk-python/issues"
[tool.uv.build-backend]
# The distribution is named clevercloud-sdk but the module is clever_cloud,
# which uv_build cannot derive from the project name.
module-name = "clever_cloud"
source-include = ["tests/**", "CHANGELOG.md"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
addopts = "-q --strict-markers"
[tool.coverage.run]
source = ["clever_cloud"]
[tool.ruff]
line-length = 100
target-version = "py311"
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", "F", "W", # pycodestyle / pyflakes
"I", # isort
"B", # bugbear
"UP", # pyupgrade
"S", # bandit
"RUF",
]
ignore = [
"S101", # assert is expected in tests
"UP042", # str+Enum is kept over StrEnum: str() of a member must not change
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S105", "S106"] # hardcoded fake credentials in fixtures
[tool.mypy]
python_version = "3.11"
strict = true
files = ["src", "tests"]
warn_unused_ignores = true
disallow_any_explicit = false