-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
81 lines (74 loc) · 1.88 KB
/
pyproject.toml
File metadata and controls
81 lines (74 loc) · 1.88 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
[project]
name = "securechain-gateway"
version = "1.1.1"
description = "A tool for managing and interacting with all microservices developed by Secure Chain"
readme = "README.md"
requires-python = ">=3.14"
license = { text = "GPL-3.0-or-later" }
dependencies = [
"fastapi==0.121.3",
"pydantic-settings==2.12.0",
"uvicorn==0.38.0",
"httpx==0.28.1",
"slowapi==0.1.9",
]
[project.optional-dependencies]
dev = [
"ruff==0.14.0",
]
test = [
"pytest==8.4.2",
"pytest-asyncio==1.2.0",
"pytest-cov>=7.0.0",
"pytest-mock>=3.14.0",
"httpx==0.28.1",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["app"]
exclude = ["tests*", "dev*"]
[tool.hatch.build.targets.sdist]
exclude = ["tests*", "dev*"]
[tool.ruff.lint]
select = [
"A", # prevent using keywords that clobber python builtins
"B", # bugbear: security warnings
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"UP", # pyupgrade
"RUF" # the ruff developer's own rules
]
ignore = [
"E501", # Suppress line-too-long warnings: trust black's judgement on this one
"C901", # Complex structure
"A004", # Module attribute shadowing
"B008", # Do not perform function calls in argument defaults
]
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--strict-markers",
"--strict-config",
"--cov=app",
"--cov-report=term-missing",
"--cov-report=html:htmlcov",
"--cov-report=xml",
]
markers = [
"unit: Unit tests",
"integration: Integration tests",
"slow: Slow running tests",
"database: Tests requiring database",
]
asyncio_mode = "auto"