-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathpyproject.toml
More file actions
95 lines (81 loc) · 2.22 KB
/
pyproject.toml
File metadata and controls
95 lines (81 loc) · 2.22 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
[tool.uv.sources]
"microsoft-teams-apps" = { workspace = true }
"microsoft-teams-api" = { workspace = true }
"microsoft-teams-common" = { workspace = true }
"microsoft-teams-cards" = { workspace = true }
"microsoft-teams-graph" = { workspace = true }
"microsoft-teams-botbuilder" = { workspace = true }
"hatch-teams-build" = { path = "tools/hatch-teams-build" }
[tool.uv.workspace]
members = ["packages/*", "examples/*"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"poethepoet>=0.35.0",
"pre-commit>=4.2.0",
"ruff>=0.11.13",
"pyright>=1.1.404",
"cookiecutter>=2.6.0",
"pytest>=9.0.3",
"pytest-asyncio>=0.23.0",
"pytest-cov>=6.0.0",
]
release = [
"hatch-teams-build",
]
[tool.ruff]
line-length = 120
fix = true
extend-exclude = ["[{][{]cookiecutter.pypi_package_name[}][}]"]
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = ["E", "F", "W", "B", "Q", "I", "ASYNC"]
[tool.ruff.lint.flake8-tidy-imports]
[tool.ruff.lint.flake8-tidy-imports.banned-api]
"unittest".msg = "Use `pytest` instead."
[tool.ruff.lint.per-file-ignores]
"packages/cards/**/*.py" = ["E501"]
"packages/cards/**/__init__.py" = ["F403"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["packages"]
[tool.poe.tasks]
fmt = "ruff format"
lint = "ruff check"
check = ["fmt", "lint"]
test = "pytest"
generate-activity-handlers = "python packages/apps/scripts/generate_handlers.py"
test-cov = "pytest --cov=packages --cov-report=term-missing --cov-report=html"
test-cov-ci = "pytest --cov=packages --cov-report=term-missing"
test-cov-xml = "pytest --cov=packages --cov-report=xml"
[tool.coverage.run]
source = ["packages"]
branch = true
omit = [
"*/tests/*",
"*/test_*.py",
"*/__pycache__/*",
"*/venv/*",
"*/.venv/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
]
precision = 2
show_missing = true
fail_under = 70
[tool.coverage.html]
directory = "htmlcov"
title = "Teams Python SDK Coverage Report"
[tool.hatch.build.targets.wheel]
packages = ["packages/*"]