-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (80 loc) · 1.85 KB
/
Copy pathpyproject.toml
File metadata and controls
87 lines (80 loc) · 1.85 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
[project]
name = "api-final-yatube"
version = "0.0.1"
authors = [
{name = "mign0n", email = "mign0n.git@gmail.com"},
]
description = ""
readme = "README.md"
requires-python = ">=3.7, <=3.9.10"
dependencies = [
"Django ==3.2.18",
"django-behaviors",
"djangorestframework",
"djangorestframework-simplejwt",
"djoser",
"drf-spectacular",
"drf-spectacular[sidecar]",
"Pillow",
"PyJWT",
"requests"
]
[project.license]
file = "LICENSE"
[project.optional-dependencies]
dev = [
"black",
"django-stubs",
"django-stubs-ext",
"django-testdata",
"flake8 ==3.9.2",
"flake8-annotations",
"flake8-commas",
"isort",
"mypy",
"mypy-extensions",
"pep8-naming",
"pymarkdownlnt",
"pytest",
"pytest-django",
]
[tool.black]
extend-exclude = "migrations/*"
line-length = 79
skip-string-normalization = "true"
[tool.django-stubs]
django_settings_module = "yatube_api.settings"
[tool.isort]
profile = "black"
line_length = 79
src_paths = "yatube_api"
extend_skip = ["migrations"]
[tool.mypy]
python_version = "3.7"
plugins = ["mypy_django_plugin.main"]
check_untyped_defs = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
ignore_errors = false
ignore_missing_imports = true
implicit_reexport = false
strict_optional = true
strict_equality = true
no_implicit_optional = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unreachable = true
warn_no_return = true
mypy_path = "yatube_api"
disable_error_code = ["var-annotated", "attr-defined"]
[tool.pytest.ini_options]
pythonpath = "yatube_api/"
DJANGO_SETTINGS_MODULE = "yatube_api.settings"
norecursedirs = ["venv/*"]
addopts = "-vv -p no:cacheprovider"
testpaths = ["tests/"]
python_files = ["test_*.py"]
filterwarnings = [
'ignore:pkg_resources is deprecated as an API:DeprecationWarning',
]