-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (99 loc) · 2.68 KB
/
pyproject.toml
File metadata and controls
115 lines (99 loc) · 2.68 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
[project]
name = "ai-native-python"
# Automatically updated by the release task via python-semantic-release (see Taskfile.yml and [tool.semantic_release] below)
version = "0.4.1"
description = "The AI-Native python paved road generator"
authors = [
{ name = "Zenable", email = "Python@zenable.io" }
]
dependencies = []
readme = "README.md"
requires-python = ">= 3.13"
[project.urls]
Homepage = "https://zenable.io"
[tool.uv.pip]
universal = true
generate-hashes = true
require-hashes = true
[[tool.uv.index]]
name = "pypi"
url = "https://pypi.org/simple"
default = true
[tool.isort]
profile = "black"
src_paths = ["ai_native_python", "tests", "hooks"]
[tool.ruff]
target-version = "py313"
line-length = 120
src = ["ai_native_python", "tests", "hooks"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long
"B008", # do not perform function calls in argument defaults
]
[tool.mypy]
plugins = []
[tool.pytest.ini_options]
addopts = "--cov=ai_native_python --cov=hooks --cov-append --no-cov-on-fail --cov-fail-under=0 --cov-report=html --cov-report=xml --cov-report=term-missing"
pythonpath = ['.']
filterwarnings = [
# Tests invoke hooks via cookiecutter subprocess, so coverage can't track them directly
"ignore:No data was collected:coverage.exceptions.CoverageWarning",
]
markers = [
"unit: marks tests as unit tests (deselect with '-m \"not unit\"')",
"integration: marks tests as integration tests (deselect with '-m \"not integration\"')",
"slow: marks tests as slow tests (deselect with '-m \"not slow\"')",
]
[tool.uv]
managed = true
[dependency-groups]
dev = [
"cookiecutter",
"coverage",
"gitpython",
"pre-commit",
"pyright",
"pytest",
"pytest-cookies",
"pytest-cov",
"python-semantic-release",
"pyyaml",
"refurb",
]
[tool.coverage.report]
fail_under = 80
[tool.pyright]
include = ["ai_native_python", "tests", "hooks"]
exclude = ["**/__pycache__"]
typeCheckingMode = "standard"
[tool.semantic_release]
version_toml = [
"pyproject.toml:project.version",
]
version_variables = [
"ai_native_python/__init__.py:__version__",
]
changelog_file = "CHANGELOG.md"
commit_parser = "conventional"
allow_zero_version = true
commit_author = "Zenable Automation <automation@zenable.io>"
commit_message = "chore(release): {version}"
tag_format = "v{version}"
[tool.semantic_release.branches.release]
match = "main"
[tool.semantic_release.remote]
name = "origin"
type = "github"
token = { env = "GH_TOKEN" }
ignore_token_for_push = false
insecure = false