-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
69 lines (59 loc) · 1.34 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
[tool.poetry]
name = "world-calendar"
version = "0.1.0"
description = "Calendar to keep track of political events"
authors = ["Miguel Luis <misc@elmassas.com>"]
repository = "https://github.com/Tiny-Brother/world-calendar"
packages = [{ include = "app" }]
[tool.poetry.dependencies]
python = "^3.12"
dnspython = "^2.6.1"
pymongo = "^4.6.3"
loguru = "^0.7.2"
mongoengine = "^0.28.2"
pydantic = "^2.7.0"
uvicorn = "^0.29.0"
fastapi = "^0.110.2"
[tool.poetry.group.dev.dependencies]
pytest-fastapi = "^0.1.0"
pytest = "^7.2.2"
pre-commit = "^3.3.1"
black = "^24.1.1"
ruff = "^0.2.1"
[tool.poetry.scripts]
app = "app.api:main"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F", "I"]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # complexity
]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
]