-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (75 loc) · 1.88 KB
/
Copy pathpyproject.toml
File metadata and controls
86 lines (75 loc) · 1.88 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
[project]
name = "iati-account-web"
version = "0.4.19"
requires-python = ">= 3.12.11"
readme = "README.md"
authors = [{name="IATI Secretariat", email="support@iatistandard.org"}]
license = {file = "LICENSE"}
description = "Web application for user account self-service and to make write changes into the new IATI Registry via the Register Your Data API"
dependencies = [
"cryptography",
"django",
"django-environ",
"django-extensions",
"django_prometheus",
"django-stubs[compatible-mypy]",
"libsuitecrm @ git+https://github.com/iati/iati-registry-libsuitecrm@v0.3.0",
"mozilla-django-oidc",
"oauthlib",
"pytz",
"requests==2.32.4",
"requests_oauthlib",
"types-requests==2.32.4.20250611",
"psycopg[binary]"
]
[project.optional-dependencies]
dev = [
"bandit[baseline]",
"black",
"flake8",
"flake8-pyproject",
"isort",
"mypy",
"pip-tools",
"pyopenssl",
"pytest",
"responses",
"werkzeug"
]
[tool.bandit.assert_used]
skips = ["*/tests/unit/test_*.py"]
[tool.django-stubs]
django_settings_module = "iati_account_web.settings"
[tool.mypy]
strict = true
mypy_path = ["src"]
plugins = ["mypy_django_plugin.main"]
[[tool.mypy.overrides]]
module = ["environ.*", "mozilla_django_oidc.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests/unit"]
addopts = [
"--import-mode=importlib"
]
pythonpath = [
"src", "tests"
]
[tool.pip-tools]
strip-extras = true
[tool.isort]
py_version=312
extend_skip = ['__pycache__', '.ve', '.venv']
skip_gitignore = true
src_paths = ['src', 'tests']
line_length = 119
profile = "black"
[tool.flake8]
max-line-length = 119
extend_ignore = ['E203', 'W503', 'E275']
exclude = ['__pycache__', '.pytest_cache', 'iati_account_web/account/migrations', '.ve', '.venv']
max_complexity = 7
[tool.black]
line-length = 119
target-version = ['py312']
include='''/.*/*.py$'''