-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
68 lines (60 loc) Β· 1.45 KB
/
Copy pathpyproject.toml
File metadata and controls
68 lines (60 loc) Β· 1.45 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
[project]
name = "techword-translator-mcp"
version = "0.3.0"
description = "MCP Server for TechWordTranslator API - Translate technical terms across English, Spanish, and German"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"fastmcp>=3.1.0",
"httpx>=0.28.0",
"pydantic>=2.12.0",
"python-dotenv>=1.2.0",
]
[project.optional-dependencies]
dev = [
"pytest>=9.0.0",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.0.0",
"pytest-mock>=3.15.0",
"respx>=0.22.0",
"black>=26.0.0",
"ruff>=0.15.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/techword_translator"]
[tool.black]
line-length = 100
target-version = ['py312']
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--cov=src/techword_translator",
"--cov-report=term-missing",
"--cov-report=xml",
"--cov-branch",
"-v",
]
[tool.coverage.run]
source = ["src/techword_translator"]
omit = ["*/tests/*", "*/__pycache__/*", "*/.venv/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]