-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
78 lines (68 loc) · 1.58 KB
/
pyproject.toml
File metadata and controls
78 lines (68 loc) · 1.58 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
[project]
name = "lambda-application"
description = "Lambda application code, decoupled from lambda-infrastructure"
dynamic = ["version"]
requires-python = ">=3.11"
readme = "README.md"
dependencies = [
]
[dependency-groups]
dev = [
"go-task-bin>=3.44.1",
"pytest>=8.3",
"pytest-cov>=6.2",
"python-semantic-release>=10.3.1",
"requests>=2.32.4",
"ruff>=0.12",
]
[tool.pytest.ini_options]
testpaths = ["src"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
[tool.ruff]
# Exclude test files from linting
exclude = [
"tests/",
"**/test_*.py",
"**/*_test.py",
"**/tests.py",
]
[tool.coverage.run]
source = ["src"]
omit = [
"*/test_*.py",
"*/_test.py",
"*/tests/*",
"*_test.py",
"test_*.py"
]
[tool.coverage.report]
exclude_lines = [
"if __name__ == .__main__.:",
"raise AssertionError",
"raise NotImplementedError",
"if self.debug:",
"if settings.DEBUG",
"pragma: no cover",
]
[tool.semantic_release]
version_source = "tag"
tag_format = "v{version}"
commit_parser = "conventional"
version_variables = ["pyproject.toml:project.version"]
allow_zero_version = true
upload_to_vcs_release = false
# Tune conventional commits behavior
[tool.semantic_release.commit_parser_options]
parse_squash_commits = true
ignore_merge_commits = true
# Full releases from main
[tool.semantic_release.branches.main]
match = "^(main|master)$"
prerelease = false
# Everything else => prerelease with token "dev"
[tool.semantic_release.branches.dev]
match = ".*"
prerelease = true
prerelease_token = "dev"