-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
59 lines (49 loc) · 1.23 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
[tool.poetry]
name = "to-do"
version = "0.1.0"
description = ""
authors = ["LecoOliveira <[email protected]>"]
readme = "README.md"
packages = [{include = "to_do"}]
[tool.poetry.dependencies]
python = "3.11.*"
fastapi = "^0.100.1"
uvicorn = "^0.23.2"
pydantic = {extras = ["email"], version = "^2.1.1"}
sqlalchemy = "^2.0.19"
pydantic-settings = "^2.0.2"
alembic = "^1.11.2"
python-jose = {extras = ["cryptography"], version = "^3.3.0"}
passlib = {extras = ["bcrypt"], version = "^1.7.4"}
python-multipart = "^0.0.6"
jinja2 = "^3.1.2"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.0"
pytest-cov = "^4.1.0"
taskipy = "^1.12.0"
blue = "^0.9.1"
ruff = "^0.0.282"
httpx = "^0.24.1"
isort = "^5.12.0"
factory-boy = "^3.3.0"
freezegun = "^1.2.2"
[tool.ruff]
line-length = 79
exclude = ['.venv', 'migrations']
[tool.isort]
profile = "black"
line_length = 79
[tool.pytest.ini_options]
pythonpath = "."
[tool.blue]
extend-exclude = '(migrations/)'
[tool.taskipy.tasks]
lint = 'ruff . && blue --check . --diff'
format = 'blue . && isort .'
run = 'uvicorn to_do.app:app --reload'
pre_test = 'task lint'
test = 'pytest -s -x --cov=to_do -vv'
post_test = 'coverage html'
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"