-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
113 lines (101 loc) · 2.04 KB
/
pyproject.toml
File metadata and controls
113 lines (101 loc) · 2.04 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
[project]
name = "fastapiproject-films"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"fastapi[standard]>=0.115.12",
"itsdangerous>=2.2.0",
"pydantic-settings[yaml]>=2.10.1",
"redis[hiredis]>=6.0.0",
"ruff>=0.11.12",
"typer>=0.15.2",
"types-redis>=4.6.0.20241004",
]
[dependency-groups]
dev = [
"coverage>=7.9.1",
"mypy>=1.16.0",
"pre-commit>=4.2.0",
"pytest>=8.4.1",
"pytest-cov>=6.2.1",
"ruff>=0.11.12",
]
[tool.uv]
required-version = "~=0.8.2"
# pytest
[tool.pytest.ini_options]
minversion = "8.3"
addopts = ["-ra", "--strict-markers"]
markers = [
"apitest: test any api call",
"templatetest: test any http HTML template page"
]
[tool.mypy]
plugins = [
"pydantic.mypy",
]
strict = true
ignore_missing_imports = true
[tool.ruff]
src = [
"movie-catalog",
]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
# Same as Black.
line-length = 88
indent-width = 4
# Assume Python 3.9
target-version = "py312"
[tool.ruff.lint]
select = [
"ANN", # flake8-annotations (ANN)
"FAST", # FastAPI (FAST)
"I", # isort (I)
"F401", # Pyflakes (F)
"S", # flake8-bandit (S)
"LOG", # flake8-logging (LOG)
# "PT", # flake8-pytest-style (PT) # todo: remove after delete unittest style tests
"RET", # flake8-return (RET)
"ARG", # flake8-unused-arguments (ARG)
"T20", # flake8-print (T20)
# "ASYNC", # flake8-async (ASYNC)
]
ignore = [
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.extend-per-file-ignores]
"stuff.py" = [
"T20",
]
"movie_catalog/tests/*" = ["S101"]