-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
115 lines (104 loc) · 1.76 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
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
114
115
[tool.poetry]
name = "django-graphql-tutorial"
version = "0.1.0"
description = ""
authors = ["jasonxie <x5758x@gmail.com>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
django = "^4.2.5"
strawberry-graphql-django = "^0.17.4"
django-extensions = "^3.2.3"
pillow = "^10.0.1"
strawberry-graphql = {extras = ["channels"], version = "^0.209.6"}
daphne = "^4.0.0"
[tool.poetry.group.dev.dependencies]
ipython = "^8.15.0"
werkzeug = "^3.0.0"
[tool.poetry.group.lint.dependencies]
django-types = "^0.18.0"
ruff = "^0.0.291"
black = "^23.9.1"
pyright = "^1.1.328"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
target-version = "py311"
select = [
# pyflakes
"F",
# pycodestyle
"E",
"W",
# pep8-naming
"N",
# pylint
"PL",
# mccabe
"C90",
# isort
"I",
# pydocstyle
"D",
# pyupgrade
"UP",
# flake8-builtins
"A",
# flake8-commas
"COM",
# flake8-bugbear
"B",
# flake8-comprehensions
"C4",
# flake8-type-checking
"TCH",
# flake8-datetimez
"DTZ",
# flake8-print
"T20",
# flake8-tidy-imports
"TID",
# flake8-simplify
"SIM",
# flake8-quotes
"Q",
# flake8-use-pathlib
"PTH",
# flake8-import-conventions
"ICN",
# flake8-django
"DJ",
]
ignore = [
# pydocstyle: Do not require any docstring
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"D212",
"D203",
# pydocstyle: Allow blank line after docstring
"D202",
]
exclude = [
"**/migrations/*",
]
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.pydocstyle]
convention = "google"
[tool.pyright]
pythonVersion = "3.11"
typeCheckingMode = "basic"
reportUnnecessaryTypeIgnoreComment = true
[tool.black]
extend-exclude = '''
/(
| migrations
)/
'''