-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (87 loc) · 2.68 KB
/
Copy pathpyproject.toml
File metadata and controls
100 lines (87 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "strands-template"
dynamic = ["version"]
description = "Your package description"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "Apache-2.0"}
authors = [
{name = "Your Name", email = "your.email@example.com"}
]
keywords = ["strands", "agents", "ai", "tool"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"strands-agents>=1.0.0",
"pydantic>=2.0.0",
]
[project.urls]
Homepage = "https://github.com/yourusername/strands-template"
Documentation = "https://github.com/yourusername/strands-template#readme"
Repository = "https://github.com/yourusername/strands-template"
Issues = "https://github.com/yourusername/strands-template/issues"
[project.optional-dependencies]
dev = [
"pytest>=8.0.0,<9.0.0",
"pytest-asyncio>=0.25.0,<1.0.0",
"ruff>=0.11.0,<1.0.0",
"mypy>=1.15.0,<2.0.0",
"hatch",
]
[tool.hatch.version]
source = "vcs"
[tool.hatch.version.raw-options]
# The git repo lives one level up (this is a monorepo with python/ and typescript/
# siblings under the same .git). Tell setuptools-scm where to look.
root = ".."
# Match release tags like `python-v0.1.0` and strip the `python-v` prefix.
# This lets the monorepo distinguish python and typescript releases via tag prefix.
tag_regex = "^python-v(?P<version>.+)$"
# setuptools-scm refuses non-default `root` unless given a reference file.
# `pyproject.toml` is always present next to itself, so it's a safe anchor.
relative_to = "pyproject.toml"
[tool.hatch.build.targets.wheel]
packages = ["src/strands_template"]
[tool.hatch.envs.default]
dependencies = [
"pytest>=8.0.0,<9.0.0",
"pytest-asyncio>=0.25.0,<1.0.0",
"ruff>=0.11.0,<1.0.0",
"mypy>=1.15.0,<2.0.0",
]
[tool.hatch.envs.default.scripts]
test = "pytest {args}"
lint = "ruff check src tests"
format = "ruff format src tests"
typecheck = "mypy src"
prepare = ["format", "lint", "typecheck", "test"]
[tool.ruff]
line-length = 120
include = ["src/**/*.py", "tests/**/*.py"]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
asyncio_mode = "auto"