-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
executable file
·68 lines (60 loc) · 1.61 KB
/
pyproject.toml
File metadata and controls
executable file
·68 lines (60 loc) · 1.61 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
[tool.poetry]
name = "pynewsserver"
version = "0.1.0"
description = ""
authors = [
"Daniel Soares Martins <daniel@soaresmartins.com>",
]
readme = "README.md"
packages = [{ include = "main.py", from = "app" }]
[tool.poetry.dependencies]
python = "^3.12"
fastapi = "^0.115.8"
orjson = "^3.10.15"
uvicorn = "^0.22.0"
httpx = "^0.27.0"
sqlmodel = "^0.0.24"
aiosqlite = "^0.21.0"
pre-commit = "^4.2.0"
python-multipart = "^0.0.20"
pyjwt = "^2.10.1"
bcrypt = "^4.3.0"
cryptography = "^45.0.7"
slowapi = "^0.1.9"
scanapi = "^2.12.0"
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.2"
pytest-asyncio = "^0.25.3"
pytest-cov = "^6.2.1"
taskipy = "^1.13.0"
ruff = "^0.6.2"
python-dotenv = {extras = ["cli"], version = "^1.0.1"}
behave = "^1.2.6"
factory-boy = "^3.3.3"
[tool.pytest.ini_options]
addopts = '-p no:warnings'
asyncio_default_fixture_loop_scope = "function"
asyncio_mode = "auto"
log_cli = true
log_cli_level = 'INFO'
pythonpath = "."
[tool.ruff]
line-length = 80
[tool.ruff.lint]
preview = true
select = ['I', 'F', 'E', 'W', 'PL', 'PT']
ignore = ["PLR2004"]
[tool.ruff.format]
preview = true
quote-style = 'double'
[tool.taskipy.tasks]
lint = 'ruff check . && ruff check . --diff'
format = 'ruff check . --fix && ruff format .'
run = 'dotenv -f .env run uvicorn app.main:app --host 0.0.0.0 --port 8888 --lifespan on'
run_docker = 'docker run --entrypoint uvicorn concilia-back-costumers app.main:app --host 0.0.0.0 --port 8000 --lifespan on'
pre_test = 'task lint'
test = 'dotenv -f .env run pytest -s -x --cov=app -vv'
post_test = 'coverage html'
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"