-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathpyproject.toml
More file actions
166 lines (146 loc) · 3.41 KB
/
pyproject.toml
File metadata and controls
166 lines (146 loc) · 3.41 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
[project]
name = "we-all-code"
description = "Django web application for We All Code nonprofit coding education organization"
version = "0.0.1"
license = {text = "MIT"}
readme = "README.md"
authors = [{name = "Ali Karbassi", email = "ali@weallcode.org"}]
requires-python = ">=3.11,<3.12"
dependencies = [
# Core Framework
"django>=5.2,<6.0",
# Database & Storage
"psycopg[binary]>=3.2.9,<4.0.0",
"boto3>=1.39.0,<2.0.0",
"django-storages>=1.14,<2.0",
# Authentication & Security
"django-allauth[socialaccount]>=65.9.0,<66.0.0",
"django-recaptcha>=4.1.0,<5.0.0",
"django-loginas>=0.3.11,<0.4.0",
# Email & Communications
"django-anymail>=13.0,<15.0",
# UI & Templates
"django-bootstrap3>=25.1,<27.0",
"django-active-link>=0.2.2,<0.4.0",
"django-html5>=1.0.0,<2.0.0",
"django-meta>=2.5.0,<3.0.0",
# Image Processing
"pillow>=11.3.0,<13.0.0",
"django-stdimage>=6.0.2,<7.0.0",
"django-cleanup>=9.0.0,<10.0.0",
# Utilities & Helpers
"arrow>=1.3.0,<2.0.0",
"icalendar>=6.3.1,<8.0.0",
"django-common-helpers>=0.9.2,<1.0.0",
"django-fullurl>=1.4,<2.0",
"django-appconf>=1.1.0,<2.0.0",
# Admin & Data Management
"django-import-export>=4.3.8,<5.0.0",
# Background Tasks
"django-cron>=0.6.0,<0.7.0",
# Environment & Configuration
"django-environ>=0.12.0,<0.14.0",
"django-heroku>=0.3.1,<0.4.0",
# Development & Debugging
"django-debug-toolbar>=5.2.0,<7.0.0",
"ruff>=0.8.0,<1.0.0",
# Testing
"django-nose>=1.4.7,<2.0.0",
"factory-boy>=3.3.3,<4.0.0",
"mock>=5.2.0,<6.0.0",
# Production Server
"gunicorn>=23.0.0,<26.0.0",
# Monitoring & Logging
"sentry-sdk>=2.32.0,<3.0.0",
"json-logging-py>=0.2,<0.3",
# Task Management
"invoke>=2.2.0,<3.0.0",
]
[project.urls]
Repository = "https://github.com/weallcode/website"
Homepage = "https://github.com/weallcode/website"
[tool.ruff]
# Use Ruff's recommended defaults
target-version = "py311"
# Exclude a variety of commonly ignored directories.
extend-exclude = [
"*/migrations/*.py",
"staticfiles/*",
]
[tool.ruff.lint]
select = [
"F",
"E",
"W",
"C90",
"I",
"N",
"UP",
"YTT",
# "ANN", # flake8-annotations: we should support this in the future but 100+ errors atm
"ASYNC",
"S",
"BLE",
"FBT",
"B",
"A",
"C4",
"DTZ",
"T10",
"DJ",
"EM",
"EXE",
"FA",
'ISC',
"ICN",
"G",
'INP',
'PIE',
"T20",
'PYI',
'PT',
"Q",
"RSE",
"RET",
"SLF",
"SLOT",
"SIM",
"TID",
"TC",
"INT",
# "ARG", # Unused function argument
"PTH",
"ERA",
"PD",
"PGH",
"PL",
"TRY",
"FLY",
# "NPY",
# "AIR",
"PERF",
# "FURB",
# "LOG",
"RUF",
]
ignore = [
"S101", # Use of assert detected https://docs.astral.sh/ruff/rules/assert/
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
"SIM102", # sometimes it's better to nest
"UP038", # Checks for uses of isinstance/issubclass that take a tuple
# of types for comparison.
# Deactivated because it can make the code slow:
# https://github.com/astral-sh/ruff/issues/7871
"COM812", # Trailing comma missing - conflicts with formatter
]
# The fixes in extend-unsafe-fixes will require
# provide the `--unsafe-fixes` flag when fixing.
extend-unsafe-fixes = [
"UP038",
]
[tool.ruff.lint.isort]
force-single-line = true
[dependency-groups]
dev = [
"pre-commit>=4.2.0",
]