-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
47 lines (40 loc) · 1.13 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
[tool.poetry]
name = "github-actions-labs"
version = "0.0.1"
description = "Sample project with a simple FastAPI workflow"
authors = ["Santiago Garcia Arango <san99tiago@gmail.com>"]
license = "Apache"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.9"
fastapi = {extras = ["all"], version = "^0.103.0"}
[tool.poetry.group.dev.dependencies]
poethepoet = "^0.20.0"
pytest = "^7.3.2"
pytest-mock = "^3.11.1"
coverage = "^7.2.7"
black = "^23.7.0"
[tool.pytest.ini_options]
minversion = "6.0"
pythonpath = [
"src",
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
# List of multiple useful commands to run app or tests locally
[tool.poe.tasks]
fastapi-local = "uvicorn src.main:app --reload"
fastapi-docker-up = "docker-compose up --build"
fastapi-docker-down = "docker-compose down"
black-format = "black ."
black-check = "black . --check --diff -v"
test-unit = ["_test_unit", "_coverage_html"]
_test_unit = "coverage run -m pytest tests/unit"
_coverage_html = "coverage html"
[tool.coverage.run]
branch = true
source = ["src"]
omit = ["**/__init__.py"]
[tool.coverage.report]
show_missing = false