-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
113 lines (103 loc) · 1.94 KB
/
Copy pathpyproject.toml
File metadata and controls
113 lines (103 loc) · 1.94 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
[tool.poetry]
name = "strife"
version = "0.1.0"
description = ""
authors = ["Krishnan Shankar <krishnans2006@gmail.com>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
Django = "~=5.0"
django-polymorphic = "^3.1.0"
pillow = "^10.4.0"
django-tailwind = "^3.8.0"
django-browser-reload = "^1.13.0"
django-extensions = "^3.2.3"
pyparsing = "^3.1.2"
pydot = "^3.0.1"
channels = {extras = ["daphne"], version = "^4.1.0"}
channels-redis = "^4.2.0"
djlint = "^1.34.1"
[tool.poetry.group.dev.dependencies]
black = "^24.4.2"
ruff = "^0.6.0"
pre-commit = "^3.8.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
extend-exclude = [
".github",
"secret",
"media",
"migrations"
]
line-length = 99
target-version = "py311"
[tool.ruff.lint]
select = [
# flake8-bugbear
"B",
# flake8-blind-except
"BLE",
# flake8-comprehensions
"C4",
# pydocstyle
"D",
# flake8-django
"DJ",
# pycodestyle
"E",
# Pyflakes
"F",
# flake8-boolean-trap
"FBT",
# isort
"I",
# flake8-no-pep420
"INP",
# pep8-naming
"N",
# Pylint
"PL",
# Pytest
"PT",
# pygrep hooks
"PGH",
# ruff
"RUF",
# pyupgrade
"UP",
]
ignore = [
# mutable class attrs annotated as typing.ClassVar
"RUF012",
# missing docstring
"D1",
# periods at the end of docstrings
"D415",
# as recommended by https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"E111",
"E114",
"E117",
"E501",
"D206",
"D300",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
line-ending = "lf"
docstring-code-format = true
[tool.djlint]
profile = "django"
indent = 2
blank_line_before_tag = "load,extends,block"
blank_line_after_tag = "load,extends,endblock"
close_void_tags = true
format_css = true
format_js = true
ignore = "H006,H030,H031"
[tool.djlint.css]
indent_size = 4
[tool.djlint.js]
indent_size = 4