-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
60 lines (56 loc) · 2.35 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
[tool.poetry]
name = "Aequitas Backend"
version = "0.1.0"
description = "Backend service of for Aequitas project"
authors = ["aequitas-aod"]
packages = [
{ include = "domain" },
{ include = "application" },
{ include = "presentation" },
{ include = "infrastructure" },
{ include = "utils" },
]
[tool.poetry.dependencies]
python = ">= 3.10.0, < 4.0.0"
flask = "3.1.0"
flask-restful = "0.3.10"
requests = "2.32.3"
waitress = "3.0.2"
python-dotenv = "1.0.1"
pydantic = "2.10.6"
neo4j = "5.28.1"
flask-cors = "5.0.1"
pyyaml = "6.0.2"
backoff = "2.2.1"
shortuuid = "1.0.13"
coverage = "^7.6.1"
pandas = "^2.2.3"
kafka-python-ng = "^2.2.3"
matplotlib = "^3.10.0"
scikit-learn = "^1.6.0"
seaborn = "^0.13.2"
aif360 = "^0.6.1"
fairlearn = "^0.12.0"
[tool.poetry.group.dev.dependencies]
black = "25.1.0"
python-on-whales = "0.75.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poe.tasks]
compile-all = { cmd = "python -m compileall application domain infrastructure presentation resources test utils" }
dev = { cmd = "flask --app infrastructure/ws/main.py run -h 0.0.0.0 -p $port", args = ["port"], env = { ENV = "develop", DB_HOST = "localhost" } }
flask = { cmd = "flask --app infrastructure/ws/main.py run -h 0.0.0.0 -p $port", args = ["port"], env = { DB_HOST = "aequitas-db" } }
serve = { cmd = "waitress-serve --port $port --call infrastructure.ws.main:create_app", args = ["port"], env = { ENV = "production", DB_HOST = "aequitas-db" } }
###
regenerate-general-context = { cmd = "python -m resources.db.cypher regenerate general_context", env = { ENV = "develop", DB_HOST = "localhost" } }
regenerate-init = { cmd = "python -m resources.db regenerate init", env = { ENV = "develop", DB_HOST = "localhost" } }
###
test = { cmd = "python -m unittest discover -v -t . -s test -p 'test_*.py'", env = { ENV = "test", DB_HOST = "localhost" } }
unit-test = { cmd = "python -m unittest discover -v -t . -s test/unit -p 'test_*.py'", env = { ENV = "test" } }
integration-test = { cmd = "python -m unittest discover -v -t . -s test/integration -p 'test_*.py'", env = { ENV = "test", DB_HOST = "localhost" } }
coverage = { cmd = "coverage run -m unittest discover -v -t . -s test -p 'test_*.py'", env = { ENV = "test", DB_HOST = "localhost" } }
coverage-report = "coverage report --omit='test/*'"
###
format-check = "black --check ."
format = "black ."