-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
109 lines (101 loc) · 2.55 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
[tool.poetry]
name = "notifications-utils"
version = "53.0.2"
description = "Shared python code for Notification - Provides logging utils etc."
authors = ["Canadian Digital Service"]
license = "MIT license"
readme = "README.md"
packages = []
[build-system]
requires = ["poetry-core>=1.3.2"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.dependencies]
python = "~3.12.7"
# required by both api and admin
awscli = "1.33.35"
bleach = "6.1.0"
boto3 = "1.34.153"
cachetools = "4.2.4"
# Pinned dependencies
certifi = "^2024.0.0" # pinned for security reasons: https://github.com/cds-snc/notification-utils/security/dependabot/22
cryptography = "^43.0.0" # https://github.com/cds-snc/notification-utils/security/dependabot/31
Flask = "2.3.3"
Flask-Redis = "0.4.0"
itsdangerous = "2.2.0"
Jinja2 = "^3.0.0"
markupsafe = "2.1.5"
mistune = "0.8.4"
ordered-set = "4.1.0"
phonenumbers = "8.13.44"
pre-commit = "^3.8.0"
py_w3c = "0.3.1"
pypdf2 = "1.28.6"
python-json-logger = "2.0.7"
pytz = "2021.3"
PyYAML = "6.0.1"
requests = "2.32.2"
smartypants = "2.0.1"
statsd = "3.3.0"
werkzeug = "3.0.4"
[tool.poetry.group.test.dependencies]
beautifulsoup4 = "^4.12.3"
click = "8.1.7"
fakeredis = "^2.24.1"
freezegun = "1.5.1"
mypy = "1.10.0"
pytest = "7.4.4"
pytest-cov = "2.12.1"
pytest-mock = "3.14.0"
pytest-xdist = "2.5.0"
requests-mock = "1.12.1"
ruff = "^0.8.2"
types-beautifulsoup4 = "^4.12.0.20240229"
types-bleach = "5.0.3.1"
types-cachetools = "5.5.0.20240820"
types-python-dateutil = "2.9.0.20240821"
types-pytz = "2022.7.1.2"
types-PyYAML = "6.0.12.20240724"
types-redis = "4.6.0.20240726"
types-requests = "2.32.0.20240712"
[tool.ruff]
target-version = "py310"
exclude = [
"venv*",
"__pycache__",
"node_modules",
"cache",
"migrations",
"build",
]
extend-include = ['(app|migrations|tests)/.*\.pyi?$']
src = ["app", "migrations", "tests"]
# Ruff formatter will wrap lines at a length of 130 characters.
line-length = 130
indent-width = 4
[tool.ruff.lint]
select = [
# PyFlakes
"F",
# Pycodestyle
"E",
"W",
# isort
"I001",
"I002",
]
ignore = ["E203", "E501", "E402"]
# Provide line length leeway for docstrings
[tool.ruff.lint.pycodestyle]
max-doc-length = 170
# Enforce doc string format? (google, numpy or pep257)
# convention = "google"
[tool.ruff.format]
# Match black formatting
# Double quotes for strings.
quote-style = "double"
# Indent with spaces, rather than tabs.
indent-style = "space"
# Respect magic trailing commas.
skip-magic-trailing-comma = false
# Automatically detect the appropriate line ending.
line-ending = "auto"