-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (62 loc) · 1.88 KB
/
pyproject.toml
File metadata and controls
74 lines (62 loc) · 1.88 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
[project]
name = "fastapp-build-chatbot-manager"
version = "1.0.0"
description = "Fastapp build chatbot manager with WhatsApp"
authors = [
{ name = "Hedris Pereira", email = "hedrisgts@gmail.com" }
]
readme = "README.md"
requires-python = ">=3.12,<4.0"
[tool.ruff]
line-length = 75
target-version = "py312"
exclude = ["venv", ".venv", "__pycache__", ".pytest_cache", "migrations", "alembic", "docs", ".git"]
fix = true
# Ignore linters PL
[tool.ruff.lint]
extend-select = ["E501"]
select = ["I", "F", "W", "PT"]
ignore = ["E402", "F811"]
[tool.ruff.format]
preview = true
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
[tool.pytest.ini_options] # para gerar o html --cov-report=html
pythonpath = ["."]
testpaths = ["tests"]
python_files = "test_*.py"
python_functions = "test_*"
addopts = "--verbose --cov=app --cov-report=html --cov-report=term --cov-branch"
[tool.coverage.run]
branch = true
omit = [
"tests/*",
"venv/*",
".venv/*",
"app/main.py",
"app/alembic/*",
"app/alembic/*",
"app/alembic/*"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]
[tool.alembic]
# path to migration scripts.
# this is typically a path given in POSIX (e.g. forward slashes)
# format, relative to the token %(here)s which refers to the location of this
# ini file
script_location = "%(here)s/alembic"
# template used to generate migration file names; The default value is %%(rev)s_%%(slug)s
# Uncomment the line below if you want the files to be prepended with date and time
# see https://alembic.sqlalchemy.org/en/latest/tutorial.html#editing-the-ini-file
# for all available tokens
# file_template = "%%(year)d_%%(month).2d_%%(day).2d_%%(hour).2d%%(minute).2d-%%(rev)s_%%(slug)s"
# additional paths to be prepended to sys.path. defaults to the current working directory.
prepend_sys_path = [
"."
]