-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
79 lines (69 loc) · 1.69 KB
/
pyproject.toml
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
[tool.poetry]
name = "regtech-user-fi-management"
version = "0.1.0"
description = ""
authors = ["CFPB's RegTech Team"]
readme = "README.md"
packages = [{ include = "regtech_user_fi_management", from = "src" }]
[tool.poetry.dependencies]
python = ">=3.12,<4"
python-dotenv = "^1.0.0"
SQLAlchemy = { version = "^2.0.36", extras = ["asyncio"]}
psycopg2-binary = "^2.9.10"
asyncpg = "^0.30.0"
alembic = "^1.14.0"
regtech-api-commons = {git = "https://github.com/cfpb/regtech-api-commons.git"}
regtech-regex = {git = "https://github.com/cfpb/regtech-regex.git"}
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.3"
pytest-asyncio = "^0.24.0"
aiosqlite = "^0.20.0"
pytest-cov = "^6.0.0"
pytest-mock = "^3.11.1"
pytest-env = "^1.1.4"
pytest-alembic = "^0.11.1"
[tool.poetry.group.linters.dependencies]
ruff = "0.8.3"
black = "24.8.0"
[tool.pytest.ini_options]
asyncio_mode = "auto"
pythonpath = ["src","db_revisions"]
addopts = [
"--cov-report=term-missing",
"--cov-branch",
"--cov-report=xml",
"--cov-report=term",
"--cov=src",
"-vv",
"--strict-markers",
"-rfE",
]
testpaths = ["tests"]
env = [
"INST_DB_SCHEMA=main",
"INST_DB_USER=user",
"INST_DB_PWD=user",
"INST_DB_HOST=localhost:5432",
"INST_DB_NAME=fi",
"KC_URL=http://localhost",
"KC_REALM=",
"KC_ADMIN_CLIENT_ID=",
"KC_ADMIN_CLIENT_SECRET=",
"KC_REALM_URL=http://localhost",
"AUTH_URL=http://localhost",
"TOKEN_URL=http://localhost",
"CERTS_URL=http://localhost",
"AUTH_CLIENT=",
]
[tool.black]
line-length = 120
[tool.ruff]
line-length = 120
[tool.coverage.run]
relative_files = true
source = ["src"]
[tool.coverage.report]
skip_empty = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"