-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
75 lines (65 loc) · 1.49 KB
/
pyproject.toml
File metadata and controls
75 lines (65 loc) · 1.49 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
[project]
name = "cusipservice"
version = "0.1.0"
description = "CUSIP securities data loader and REST API service"
requires-python = ">=3.11"
dependencies = [
"psycopg2-binary>=2.9.11",
"fastapi>=0.115",
"uvicorn[standard]>=0.32",
"pydantic>=2.10",
"pydantic-settings>=2.6",
"alembic>=1.16.5",
"boto3>=1.35",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/cusipservice"]
[dependency-groups]
dev = [
"ruff>=0.8",
"mypy>=1.14",
"pytest>=8.0",
"pytest-cov>=6.0",
"pytest-asyncio>=0.24",
"httpx>=0.27",
"pre-commit>=4.0",
"types-psycopg2>=2.9",
"boto3-stubs[s3]>=1.35",
]
[tool.ruff]
target-version = "py311"
line-length = 88
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
]
ignore = ["E501"] # line length handled by formatter
[tool.ruff.lint.isort]
known-first-party = ["cusipservice"]
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_ignores = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-v --tb=short"
[tool.coverage.run]
source = ["src"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
]