-
-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathpyproject.toml
More file actions
158 lines (136 loc) · 3.67 KB
/
Copy pathpyproject.toml
File metadata and controls
158 lines (136 loc) · 3.67 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
[project]
name = "redirectioneaza"
version = "3.0.0"
description = "A tool to help NGOs with managing the redirection of people's tax income."
requires-python = ">=3.13"
dependencies = [
"blessed~=1.39.0",
"cryptography~=48.0.0",
"django~=5.2.0",
"django-allauth~=65.16.0",
"django-auditlog~=3.4.0",
"django-environ~=0.13.0",
"django-import-export~=4.4.0",
"django-ipware~=7.0.0",
"django-localflavor~=5.0.0",
"django-q2~=1.10.0",
"django-recaptcha~=4.1.0",
"django-ses~=4.7.0",
"django-storages[s3]~=1.14.0",
"django-tinymce~=5.0.0",
"django-unfold~=0.92.0",
"django-vite~=3.1.0",
"gevent~=26.4.0",
"gunicorn~=26.0.0",
"ngohub~=0.1.0",
"phonenumbers~=9.0.0",
"psutil~=7.2.0",
"psycopg2-binary~=2.9.0",
"pycognito~=2024.5.0",
"pydantic[email]~=2.13.0",
"pymysql~=1.1.0",
"pypdf~=6.11.0",
"reportlab~=4.5.0",
"requests~=2.33.0",
"sentry-sdk[django]~=2.59.0",
"whitenoise~=6.12.0",
]
[dependency-groups]
test = [
"faker~=40.15.0",
"pytest~=9.0.0",
"pytest-cov~=7.1.0",
"pytest-django~=4.12.0",
"pytest-xdist~=3.8.0",
]
ruff = [
"ruff~=0.15.15"
]
dev = [
"debugpy~=1.8.0",
"pre-commit~=4.6.0",
{ include-group = "ruff" },
{ include-group = "test" },
]
[tool.ruff]
# Enable the following rules
# More info: https://docs.astral.sh/ruff/rules/
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"migrations",
"_appengine_legacy",
]
# Same as Black.
line-length = 120
# Assume Python 3.13.
target-version = "py313"
[lint]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
ignore = []
select = [
"DJ", # Flake8-Django - https://docs.astral.sh/ruff/rules/#flake8-django-dj
"E", # Pycodestyle errors - https://docs.astral.sh/ruff/rules/#error-e
"W", # Pycodestyle warnings - https://docs.astral.sh/ruff/rules/#warning-w
"F", # Pyflakes - https://docs.astral.sh/ruff/rules/#pyflakes-f
"T10", # Debugger - https://docs.astral.sh/ruff/rules/#flake8-debugger-t10
"T20", # Remove print/pprint statements - https://docs.astral.sh/ruff/rules/#flake8-print-t20
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
unfixable = []
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.ruff.lint.extend-per-file-ignores]
"_appengine_legacy/**" = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
"redirectioneaza/settings/**" = ["F403"]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "redirectioneaza.settings"
python_files = [
"test.py",
"test*.py",
"*test.py",
"*tests.py",
"backend/*/tests/*.py",
]
filterwarnings = [
"ignore:The django.utils.baseconv module is deprecated."
]
[tool.coverage.run]
omit = [
# omit all migration folders
"*/migrations/*",
# omit all test folders
"*/tests/*",
]
[tool.black]
line-length = 120
target-version = ["py313"]
extend-exclude = '''
/(
| migrations
)/
'''