-
Notifications
You must be signed in to change notification settings - Fork 10
/
pyproject.toml
79 lines (69 loc) · 1.87 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
70
71
72
73
74
75
76
77
78
79
[tool.poetry]
name = "shortify"
version = "0.1.10"
description = "Shortify is a URL shortener RESTful API built with Python and FastAPI."
authors = ["Iliya <IHosseini083@gmail.com>"]
license = "GPL-3.0-only"
readme = "README.md"
repository = "https://github.com/IHosseini/Shortify"
[tool.poetry.dependencies]
python = "^3.8"
fastapi = {extras = ["all"], version = "^0.99.1"}
beanie = "^1.20.0"
passlib = {extras = ["bcrypt"], version = "^1.7.4"}
python-jose = {extras = ["cryptography"], version = "^3.3.0"}
structlog = "^23.1.0"
[tool.poetry.group.dev.dependencies]
isort = "^5.12.0"
ruff = "^0.0.284"
mypy = "^1.4.1"
black = "^23.7.0"
pre-commit = "^3.3.3"
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/IHosseini/Shortify/issues"
[tool.isort]
profile = "black"
skip_gitignore = true
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
line_length = 88
[tool.mypy]
ignore_missing_imports = true
check_untyped_defs = true
no_implicit_optional = true
show_error_codes = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unreachable = true
[tool.ruff]
line-length = 88
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = [
"E501", # line too long, handled by black.
"B008", # do not perform function calls in argument defaults.
"B010", # Do not call `setattr` with a constant attribute value.
]
# Exclude a variety of commonly ignored directories.
exclude = [
".git",
".mypy_cache",
".ruff_cache",
".venv",
"venv",
"__pycache__",
]
[tool.ruff.isort]
known-third-party = ["fastapi", "pydantic", "starlette"]
[tool.ruff.per-file-ignores]
# Ignore `F401` violations in any `__init__.py` file.
"__init__.py" = ["F401"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"