-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (77 loc) · 2.14 KB
/
pyproject.toml
File metadata and controls
86 lines (77 loc) · 2.14 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
[project]
name = "showcard-website"
version = "0.0.1"
description = "A simple project for django back-end"
authors = [{ name = "asmeralt", email = "bohdan.vasylyshyn@pm.me" }]
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"django (>=5.2.6,<6.0.0)",
"django-filter (>=25.1,<26.0)",
"markdown (>=3.9,<4.0)",
"djangorestframework (>=3.16.1,<4.0.0)",
"djangorestframework-stubs[compatible-mypy] (>=3.16.5,<4.0.0)",
]
[tool.poetry]
package-mode = false
[tool.poetry.group.dev.dependencies]
black = "^25.9.0"
isort = "^6.0.1"
flake8 = "^7.3.0"
mypy = "^1.18.2"
django-stubs = "^5.2.5"
pre-commit = "^4.3.0"
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.flake8]
# For configuration options see: https://github.com/PyCQA/flake8
ignore = [
# Indentation — black handles
"E1",
"W1",
# Whitespace — black handles
"E2",
"W2",
# Blank lines — black handles
"E3",
"W3",
# Imports — isort handles
"E4",
"W4",
# Line length — black handles
"E5",
"W5",
# No lambdas — too strict
"E731",
]
max-line-length = 120
[tool.isort]
# For configuration options see: https://github.com/PyCQA/isort
profile = "black"
line_length = 120
src_paths = ["src/backend", "tests/backend"]
[tool.black]
# For configuration options see: https://github.com/psf/black/tree/main
line-length = 120
[tool.shellcheck]
# For configuration options see: https://github.com/shellcheck-py/shellcheck-py
[tool.mypy]
# For configuration options see: https://mypy.readthedocs.io/en/stable/config_file.html
exclude = ['\.venv', '\.git', '__pycache__']
mypy_path = '$MYPY_CONFIG_FILE_DIR/src/backend'
warn_unused_configs = true
disallow_untyped_defs = true
check_untyped_defs = true
no_implicit_optional = true
warn_return_any = true
show_error_codes = true
allow_redefinition = true
warn_unused_ignores = true
show_error_context = true
warn_redundant_casts = true
namespace_packages = true
explicit_package_bases = true
plugins = ["mypy_django_plugin.main", "mypy_drf_plugin.main"]
[tool.django-stubs]
django_settings_module = "showcard_website_api.settings"