-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
116 lines (100 loc) · 1.89 KB
/
pyproject.toml
File metadata and controls
116 lines (100 loc) · 1.89 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
116
[project]
name = 'chapi'
description = 'PoC chunk manifest API tool in the style of CCRP'
readme = 'README.md'
authors = [
{name = "Jarrett Keifer", email = "jkeifer0@gmail.com"},
]
license = {text = "Apache License 2.0"}
requires-python = '>=3.14'
dynamic = [
'version',
]
dependencies = [
"click>=8.2.1",
"fastapi>=0.116.1",
"pydantic>=2.11.7",
"pydantic-settings>=2.10.1",
"uvicorn>=0.35.0",
]
[project.urls]
Repository = 'https://github.com/ccrp-dev/chapi'
[project.scripts]
chapi = "chapi.__main__:cli"
[build-system]
requires = [
"hatchling",
"hatch-vcs",
]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/chapi/__version__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/chapi"]
[tool.ruff.format]
quote-style = 'single'
[tool.ruff.lint]
# https://docs.astral.sh/ruff/rules/
select = [
'B',
'BLE',
'C4',
'C90',
'COM',
'DTZ',
'E',
'ERA',
'F',
'FA',
'G',
'I',
'INP',
'N',
'NPY',
'PT',
'PTH',
'RET',
'RUF',
'S',
'SIM',
'T20',
'UP',
'W',
]
exclude = ['docs/**/*']
[tool.ruff.lint.per-file-ignores]
'__init__.py' = ['E402']
'tests/**/*' = ['T201', 'S101']
[tool.ruff.lint.isort]
lines-between-types = 1
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = [
"fastapi.Depends",
]
[tool.mypy]
ignore_missing_imports = true
scripts_are_modules = true
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = 'function'
addopts = [
"--cov=chapi",
"--import-mode=importlib",
]
testpaths = 'tests'
[tool.coverage.report]
show_missing = true
skip_empty = true
sort = "Cover"
[dependency-groups]
dev = [
"httpx>=0.28.1",
"mypy>=1.18.1",
"pre-commit>=4.3.0",
"pre-commit-hooks>=6.0.0",
"pytest>=8.4.2",
"pytest-asyncio>=1.1.0",
"pytest-cov>=7.0.0",
"ruff>=0.13.0",
]