Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (123 loc) · 3 KB
/
Copy pathpyproject.toml
File metadata and controls
134 lines (123 loc) · 3 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
122
123
124
125
126
127
128
129
130
131
132
133
134
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "template-cloudzero-open-source"
dynamic = ["version"]
description = "CloudZero Open Source Template"
readme = "README.md"
requires-python = ">=3.11"
license = {text = "Apache-2.0"}
authors = [
{ name = "CloudZero", email = "support@cloudzero.com" },
]
keywords = [
"CloudZero"
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: Unix",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
[project.urls]
Homepage = "https://github.com/cloudzero/template-cloudzero-open-source"
Documentation = "https://github.com/cloudzero/template-cloudzero-open-source#readme"
Repository = "https://github.com/cloudzero/template-cloudzero-open-source"
"Bug Tracker" = "https://github.com/cloudzero/template-cloudzero-open-source/issues"
"Source Code" = "https://github.com/cloudzero/template-cloudzero-open-source"
[project.optional-dependencies]
dev = [
"pytest>=9.1",
"pytest-cov>=7.1",
"ruff>=0.16.0",
]
test = [
"pytest>=9.1",
"pytest-cov>=7.1",
]
lint = [
"ruff>=0.16.0",
]
# For data-focused projects, prefer polars over pandas
data = [
"polars>=1.44.0",
]
# For HTTP clients, prefer httpx over requests
http = [
"httpx>=0.28.0",
]
# For data validation, use pydantic 2
validation = [
"pydantic>=2.13.0",
]
# For AWS Lambda projects, use aws-lambda-powertools
aws-lambda = [
"aws-lambda-powertools>=3.34.0",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--cov=src",
"--cov-report=term-missing",
"--cov-report=html",
"--cov-report=xml",
]
[tool.coverage.run]
source = ["src"]
omit = [
"*/tests/*",
"*/test_*.py",
]
[tool.coverage.report]
fail_under = 60
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"SIM", # flake8-simplify
"PIE", # flake8-pie
"PT", # flake8-pytest-style
"RUF", # Ruff-specific
]
ignore = [
"E501", # line too long, handled by ruff formatter
]
[tool.ruff.lint.isort]
known-first-party = ["your_package_name"]
[dependency-groups]
dev = [
"pytest>=9.1",
"pytest-cov>=7.1",
"ruff>=0.16.0",
]