-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
118 lines (106 loc) · 2.67 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
116
117
118
[build-system]
requires = ["setuptools", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[project]
name = "extensions-web"
dynamic = ["version"]
authors = [
{name = "Yuri Konotopov", email = "ykonotopov@gnome.org"},
{name = "Jasper St. Pierre", email = "jstpierre@mecheye.net"},
]
description = "GNOME Shell extesions website."
readme = "README.md"
license = {file = "COPYING"}
keywords = ["django"]
requires-python = ">=3.11"
classifiers = [
"Programming Language :: Python :: 3",
"Framework :: Django",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Operating System :: POSIX :: Linux",
"Topic :: Desktop Environment :: Gnome",
]
dependencies = [
"Django==4.2.18",
"djangorestframework==3.15.2",
"django-autoslug==1.9.9",
"django-contrib-comments==2.2.0",
"django-cors-headers==4.6.0",
"django-filter==23.3",
"django-rest-registration==0.8.2",
"django-rest-knox==4.2.0",
"django-maintenance-mode==0.21.1",
"django-opensearch-dsl==0.5.1",
"django-recaptcha==3.0.0",
"django-registration==3.4",
"drf-nested-routers==0.93.4",
"drf-spectacular[sidecar]==0.26.5",
"Pygments==2.15.1",
"pillow==11.0.0",
"polib==1.1.1",
"chardet==5.1.0",
"dj-database-url==2.0.0",
"dj-email-url==1.0.6",
"psycopg[binary]==3.2.3",
"uWSGI==2.0.28",
]
[project.optional-dependencies]
dev = [
"pip-tools==7.4.1",
"pylint==3.3.1",
"pylint-django==2.6.1",
"ruff==0.7.4",
]
[project.urls]
Homepage = "https://extensions.gnome.org"
Repository = "https://gitlab.gnome.org/Infrastructure/extensions-web.git"
Issues = "https://gitlab.gnome.org/Infrastructure/extensions-web/-/issues"
Changelog = "https://gitlab.gnome.org/Infrastructure/extensions-web/-/commits/master/?ref_type=HEADS"
[tool.setuptools.packages.find]
include = ["sweettooth*"]
[tool.setuptools_scm]
version_file = "sweettooth/__version__.py"
[tool.pylint.main]
ignore-patterns = "^\\.#"
jobs = 0
load-plugins = "pylint_django"
django-settings-module = "sweettooth.settings"
disable = [
"C0111",
"W1203",
]
[tool.pyright]
exclude = [
"build/",
"contrib/",
"dist/",
"**/*.egg-info",
]
[tool.ruff]
extend-exclude = [
"migrations",
]
[tool.ruff.lint.isort]
known-first-party = ["sweettooth"]
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# isort
"I",
]
ignore = [
# No docstyle for now
"D",
# We don't want to replace huge `if` statements with return
"SIM102",
"SIM103",
# Explicit is better than implicit
"UP015",
# We have too many percent-encoded string. Ignore for now
"UP031",
]