forked from cds-snc/notification-api
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpyproject.toml
145 lines (130 loc) · 3.04 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
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
[tool.poetry]
name = "notification-api"
description = "VA Enterprise Notification Platform"
authors = [
"VA Notify <[email protected]>",
]
readme = "README.md"
package-mode = false
# https://peps.python.org/pep-0518/#tool-table
[tool.static_tests]
poetry_version = "1.8.4"
[tool.poetry.dependencies]
python = "~3.10"
alembic-utils = "*"
Authlib = "*"
boto3 = "*"
botocore = "*"
cachelib = "*"
cachetools = "*"
celery = {extras = ["sqs"], version = "*"}
click-datetime = "*"
# 24 DEC 2024: Upgrading to the next minor version causes deployments to fail at the "run-deployment/deploy-api" step.
ddtrace = "~2.17"
docopt = "*"
fido2 = "*"
Flask = "*"
Flask-Bcrypt = "*"
Flask-JWT-Extended = "*"
flask-marshmallow = "*"
Flask-Migrate = "*"
Flask-SQLAlchemy = "*"
gunicorn = "*"
iso8601 = "*"
itsdangerous = "*"
jsonschema = "*"
kombu = "*"
marshmallow = "*"
marshmallow-sqlalchemy = "*"
nanoid = "*"
notifications-python-client = "*"
phonenumbers = "*"
psycopg2-binary = "*"
pwnedpasswords = "*"
PyJWT = "*"
pypdf = "*"
python-dotenv = "*"
python-magic = "*"
rfc3339-validator = "*"
sentry-sdk = {extras = ["flask"], version = "*"}
SQLAlchemy = "^1.4"
twilio = "*"
Unidecode = "*"
validatesns = "*"
Werkzeug = "*"
notification-utils = {git = "https://github.com/department-of-veterans-affairs/notification-utils.git"}
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
freezegun = "*"
google-cloud-bigquery = "*"
moto = "*"
pytest = "*"
pytest-cov = "*"
pytest-env = "*"
pytest-mock = "*"
pytest-xdist ="*"
requests-mock = "*"
rfc3987 = "*"
strict-rfc3339 = "*"
[tool.poetry.group.static_tools]
optional = true
[tool.poetry.group.static_tools.dependencies]
ruff = "*"
pre-commit = "*"
[tool.ruff]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
"migrations",
]
line-length = 120
indent-width = 4
target-version = "py310"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "W", "C901"]
ignore = []
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.format]
docstring-code-format = true # https://docs.astral.sh/ruff/settings/#format-docstring-code-format
# docstring-code-line-length = "dynamic" # https://docs.astral.sh/ruff/settings/#format-docstring-code-line-length
indent-style = "space"
line-ending = "auto"
quote-style = "single"
skip-magic-trailing-comma = false
[tool.bandit]
exclude_dirs = ["tests"]
skips = ["B101"] # https://bandit.readthedocs.io/en/latest/plugins/b101_assert_used.html
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"