-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
80 lines (72 loc) · 1.58 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
80
[tool.poetry]
name = "app"
version = "0.1.0"
description = "Fastapi hello-world app "
authors = ["donhector <2475379+donhector@users.noreply.github.com>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/donhector/fastapi-hello-world"
repository = "https://github.com/donhector/fastapi-hello-world"
[tool.poetry.dependencies]
python = "^3.9"
uvicorn = "^0.20.0"
fastapi = "^0.92.0"
[tool.poetry.dev-dependencies]
black = "^23.1.0"
isort = "^5.12"
mypy = "^1.0"
autoflake = "^2.0"
pytest = "^7.2"
pytest-watch = "^4.2.0"
pytest-cov = "^4.0"
pytest-asyncio = "^0.20.3"
pytest-xdist = "^3.2.0"
pre-commit = "^3.0"
requests = "^2.28.2"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.isort]
py_version = 39
profile = "black"
src_paths = ["app", "tests"]
#force_single_line = true
#force_grid_wrap = 2
combine_as_imports = true
lines_between_types = 1
lines_after_imports = 2
[tool.black]
target-version = ['py39']
force-exclude = '''
.*/setup\.py$
'''
[tool.mypy]
check_untyped_defs = true
ignore_missing_imports = true
show_error_codes = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
files = "app"
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:"
]
[tool.pytest.ini_options]
testpaths = "tests"
filterwarnings = "error"
addopts = '''
--strict-markers
--tb=short
--cov=app
--cov=tests
--cov-branch
--cov-report=term-missing
--cov-report=html
--cov-report=xml
--no-cov-on-fail
--cov-fail-under=100
--numprocesses=auto
--asyncio-mode=auto
'''