-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
81 lines (69 loc) · 1.48 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
80
81
[tool.poetry]
name = "clean-marketplace"
version = "0.1.0"
description = "Clean Django Ninja Marketplace"
authors = ["dotpep <pepelnine@gmail.com>"]
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
django = "^5.0.3"
psycopg2 = "^2.9.9"
django-environ = "^0.11.2"
django-ninja = "^1.1.0"
punq = "^0.7.0"
[tool.poetry.group.dev.dependencies]
isort = "^5.13.2"
pre-commit = "^3.6.2"
pytest = "^8.1.1"
pytest-django = "^4.8.0"
faker = "^24.2.0"
factory-boy = "^3.3.0"
ipython = "^8.22.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
# Test settings - Pytest Django
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "core.project.settings.local"
# Linters/Formatters settings
[tool.isort]
# Global settings
multi_line_output = 3
include_trailing_comma = true
line_length = 120
lines_after_imports = 2
lines_between_sections = 1
lines_between_types = 0
force_alphabetical_sort_within_sections = true
ensure_newline_before_comments = true
combine_as_imports = true
combine_star = true
skip_gitignore = true
balanced_wrapping = true
force_grid_wrap = 2
# Local settings
src_paths = ["core"]
skip_glob = [
".git",
".idea",
".vscode",
"venv",
".venv",
".dockerignore",
"__init__*",
"__pycache__*",
"*migrations*"
]
# Known
known_django = ["django", "ninja"]
known_first_party = ["core"]
# Sections
sections = [
"FUTURE",
"STDLIB",
"DJANGO",
"THIRDPARTY",
"FIRSTPARTY",
"LOCALFOLDER"
]