Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (70 loc) · 1.91 KB
/
Copy pathpyproject.toml
File metadata and controls
87 lines (70 loc) · 1.91 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[project]
name = "fastapi-template"
version = "0.1.0"
description = ""
authors = [
{name = "buguno",email = "brunnodesouzabezerra@gmail.com"}
]
license = "MIT"
requires-python = ">=3.14,<4.0"
dependencies = [
"fastapi[standard] (>=0.141.1,<0.142.0)",
"pydantic-settings (>=2.15.0,<3.0.0)",
"sqlalchemy[asyncio] (>=2.1.4,<3.0.0)",
"alembic (>=1.20.0,<2.0.0)",
"pyjwt (>=2.15.1,<3.0.0)",
"pwdlib[argon2] (>=0.3.1,<0.4.0)",
"greenlet (>=3.5.6,<4.0.0)",
"psycopg[binary] (>=3.3.6,<4.0.0)"
]
[tool.poetry]
package-mode = false
[dependency-groups]
dev = [
"pytest (>=9.1.1,<10.0.0)",
"pytest-cov (>=7.1.0,<8.0.0)",
"ruff (>=0.16.10,<0.17.0)",
"typos (>=1.51.1,<2.0.0)",
"pytest-random-order (>=1.2.0,<2.0.0)",
"faker (>=40.41.0,<41.0.0)",
"pytest-asyncio (>=1.4.0,<2.0.0)",
"testcontainers (>=4.15.0,<5.0.0)",
"factory-boy (>=3.3.3,<4.0.0)",
"freezegun (>=1.5.5,<2.0.0)"
]
[tool.ruff]
line-length = 79
extend-exclude = ['migrations']
[tool.ruff.lint]
preview = true
select = ['I', 'F', 'E', 'W', 'PL', 'PT', 'FAST']
[tool.ruff.format]
preview = true
quote-style = 'single'
[tool.pytest]
pythonpath = ['.']
addopts = ['-p', 'no:warnings', '--cov=app', '--cov-context=test', '--cov-branch', '--random-order']
asyncio_default_fixture_loop_scope = 'function'
[tool.typos.default]
extend-ignore-identifiers-re = ["selectin"]
[tool.coverage.run]
core = "ctrace"
concurrency = ["thread", "greenlet"]
[tool.typos.files]
extend-exclude = ["*.md"]
[tool.poe]
poetry_command = ""
[tool.poe.tasks]
lint = "ruff check"
serve = "fastapi dev app/main.py"
coverage = "coverage html --show-contexts"
[[tool.poe.tasks.format.sequence]]
cmd = "ruff check --fix"
[[tool.poe.tasks.format.sequence]]
cmd = "ruff format"
[[tool.poe.tasks.test.sequence]]
ref = "lint"
[[tool.poe.tasks.test.sequence]]
cmd = "pytest -s -x -vv $POE_EXTRA_ARGS"
[[tool.poe.tasks.test.sequence]]
ref = "coverage"