-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
53 lines (48 loc) · 1.09 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
[project]
name = "url-shortener-api"
version = "0.0.2"
description = ""
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"django>=5.1.1",
"psycopg[binary]>=3.2.1",
"pydantic-settings>=2.4.0",
]
[tool.uv]
dev-dependencies = [
"ruff>=0.6.4",
"basedpyright>=1.17.2",
"pre-commit>=3.6.1",
"pytest>=8.0.0",
"pytest-sugar>=1.0.0",
"requests-mock>=1.11.0",
"pytest-mock>=3.12.0",
"pysnooper>=1.2.0",
]
[tool.basedpyright]
typeCheckingMode = "all"
[tool.ruff]
line-length = 88
exclude = ['.git', '__pycache__', '__init__.py', '.mypy_cache', '.pytest_cache']
extend-include = ["*.ipynb"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"UP", # pyupgrade
]
ignore = [
"E501", # line too long
"C901", # Comprehension is too complex (11 > 10)
"W191", # indentation contains tabs
"E402",
]
unfixable = ["F841"]
[tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true