-
Notifications
You must be signed in to change notification settings - Fork 883
Expand file tree
/
Copy pathpyproject.toml
More file actions
182 lines (176 loc) · 5.97 KB
/
Copy pathpyproject.toml
File metadata and controls
182 lines (176 loc) · 5.97 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
[project]
name = "kitsune"
version = "0.1.0"
description = "Mozilla Support Platform"
authors = [{ name = "Your Name", email = "you@example.com" }]
requires-python = ">=3.14, <3.15"
license = "BSD-3-Clause"
dependencies = [
"Django>=5.2,<6",
"Pillow>=11.0.0,<12",
"justhtml>=3.0.0,<4",
"boto3>=1.43.40,<2",
"celery==5.6.0",
"dennis>=1.1.0,<2",
"mozilla-django-oidc==4.0.0",
"dj-database-url>=1.3.0,<4",
"django-jinja>=2.11.0,<3",
"lxml>=6.0.1,<7",
"elasticsearch>=9.4.0,<10",
"gunicorn>=22.0.0,<26",
"django-waffle>=3.0.0,<6",
"python-decouple~=3.8",
"sentry-sdk>=2.61.1,<3",
"whitenoise>=6.6.0,<7",
"zenpy>=2.0.47,<3",
"idna~=3.18",
"django-allow-cidr>=0.6.0,<0.9",
"html5lib~=1.1",
"py-wikimarkup>=2.3.0,<3",
"python-dateutil>=2.8.2,<3",
"python-memcached~=1.61",
"redis>=4.6.0,<5",
"django-cors-headers>=3.14.0,<5",
"django-enforce-host>=1.1.0,<2",
"django-cache-url>=3.4.5,<4",
"django-extensions>=3.2.3,<4",
"django-filter~=25.1",
"django-redis>=7.0.0,<8",
"factory-boy>=3.3.0,<4",
"Faker>=16.9.0,<17",
"simplejson>=4.0.1,<5",
"twython>=3.9.1,<4",
"django-ratelimit>=4.1.0,<5",
"django-storages[google]>=1.14.2,<2",
"django-taggit>=6.1.0,<7",
"django-user-agents>=0.4.0,<0.5",
"django-watchman==1.5.0",
"premailer>=3.10.0,<4",
"pyquery>=2.0.0,<3",
"parameterized>=0.9.0,<0.10",
"Werkzeug==3.1.5",
"commonware>=0.6.0,<0.7",
"django-statici18n>=2.4.0,<3",
"django-timezone-field~=7.1",
"djangorestframework>=3.15.2,<4",
"django-activity-stream>=1.4.2,<2",
"django-jsonfield-compat>=0.4.4,<0.5",
"django-jsonfield-backport>=1.0.5,<2",
"cffi>=2.0.0,<3",
"django-mozilla-product-details>=1.0.3,<2",
"django-csp==4.0",
"oauthlib>=3.2.2,<4",
"protobuf>=6.0.0,<8",
"Babel>=2.14.0,<3",
"Jinja2>=3.1.6,<4",
"google-auth>=2.45.0,<3",
"graphene-django>=3.2.0,<4",
"django-guardian>=3.3.2,<4",
"pyOpenSSL>=25.1.0",
"mkdocs>=1.5.3,<2",
"mkdocs-material>=9.5.3,<10",
"dockerflow>=2022.8.0,<2023",
"google-analytics-data>=0.23.0,<1",
"pyparsing==3.3.2",
"django-silk>=5.1.0,<6",
"requests>=2.34.2,<3",
"fuzzywuzzy>=0.18.0,<0.19",
"django-ses==4.7.2",
"django-post-office==3.11.2",
"langchain==1.3.9",
"langchain-google-vertexai==3.2.3",
"django-celery-beat>=2.8.1,<3",
"django-treebeard>=5.2.2",
"markdown>=3.10.2",
]
[project.optional-dependencies]
dev = [
"psycopg[binary,pool]>=3.3.4,<4"
]
prod = [
"psycopg[binary,pool]>=3.3.4,<4"
]
[tool.black]
line-length = 99
# NB: this can only be updated once black supports the target python version,
# so may lag behind the version of python we're using. This shouldn't matter
# unless we're using completely new syntax:
target-version = ['py314']
exclude = "^.*/migrations/.*$|kitsune/sumo/db_strings.py"
[dependency-groups]
dev = [
"ipdb>=0.13.11,<0.14",
"ruff>=0.4.0,<1",
"appnope>=0.1.3,<0.2",
"argparse>=1.4.0,<2",
"django-cache-panel>=0.1,<0.2",
"jsonschema>=4.20.0,<5",
"pre-commit>=3.6.0,<4",
"q~=2.7",
"debugpy>=1.8.0,<2",
"urlwait~=1.0",
"testfixtures>=7.2.2,<8",
"tabulate>=0.10.0,<0.11",
"rope>=1.11.0,<2",
"pytest-html>=4.2.0,<5",
"nltk>=3.9.1,<4",
"pytest-xdist>=3.6.1,<4",
"pytest-playwright>=0.8.0,<0.9",
"pytest-rerunfailures~=16.3",
"pytest-check>=2.5.3,<3",
"allure-pytest>=2.14.0,<3",
"pytest>=9.0.3,<10",
"flower>=2.0.1,<3",
"google-api-python-client>=2.196.0,<3",
"google-auth-oauthlib>=1.2.0,<2",
"playwright>=1.61.0",
]
[tool.ruff]
target-version = "py314"
line-length = 99
[tool.ruff.lint]
extend-select = ["E", "W", "F", "I", "B", "C4", "UP", "N", "PL", "RUF"]
ignore = [
"E501", # Line too long - already ignored
"RUF012", # Mutable class attributes should be annotated with typing.ClassVar
"RUF015", # Prefer next(iter(...)) over single element slice
"RUF007", # Prefer itertools.pairwise() over zip() when iterating over successive pairs
"N813", # Camelcase imported as lowercase
"N814", # Camelcase imported as constant
"N817", # CamelCase imported as acronym
"PLR0913", # Too many arguments in function definition
"PLR2004", # Magic value used in comparison
"PLR1714", # Consider merging multiple comparisons
"B904", # Within an except clause, raise exceptions with raise ... from err
"B008", # Do not perform function call in argument defaults
"N802", # Function name should be lowercase
"N806", # Variable in function should be lowercase
"N803", # Argument name should be lowercase
"N801", # Class name should use CapWords convention
"N818", # Exception name should be named with an Error suffix
"PLC0415", # Import should be top level of a file
"PLR0912", # Too many branches
"PLR0915", # Too many statements
"PLR0911", # Too many return statements
"B023", # Function definition does not bind loop variable
"B034", # re.sub should pass count and flags as keyword arguments
"B026", # Star-arg unpacking after a keyword argument
"B027", # Empty method in abstract base class
"B007", # Loop control variable not used within loop body
"B018", # Found useless expression
"C400", # Unnecessary generator (rewrite as a list comprehension)
"PLE0101", # Explicit return in __init__
"PLW0603", # Using the global statement
"PLW2901", # for loop variable overwritten by assignment target
"UP031", # Use format arguments
"UP032", # Use f-string instead of format call
"UP028", # Replace yield over for loop with yield from
"E721", # Do not compare types, use isinstance()
"E741", # Ambiguous variable name
"E402", # Module level import not at top of file
"RUF001", # String contains ambiguous characters
]
exclude = ["**/migrations/**", "kitsune/sumo/db_strings.py"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"