-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
112 lines (100 loc) · 2.47 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
[tool.poetry]
name = "nrlf-api"
version = "1.0.0"
description = ""
authors = ["NHS Digital"]
license = "MIT"
readme = "README.md"
package-mode = false
[tool.poetry.dependencies]
python = "^3.12"
nhs-number = "1.3.4"
aws-lambda-powertools = "^2.35.1"
requests = "^2.31.0"
boto3-stubs = {extras = ["dynamodb", "firehose", "kinesis", "lambda", "rds", "s3"], version = "^1.34.65"}
pyjwt = "^2.8.0"
pydantic = "^2.9.2"
pydantic-settings = "^2.5.2"
[tool.poetry.group.dev.dependencies]
layers = {path = "layer", develop = true}
nrlf-converter = {url = "https://github.com/NHSDigital/nrlf-converter/releases/download/0.0.9/nrlf_converter-0.0.9-py3-none-any.whl"}
pytest = "^8.1.1"
pytest-mock = "^3.12.0"
pytest-cov = "^5.0.0"
boto3 = "^1.34.60"
sh = "^2.0.6"
moto = {extras = ["dynamodb", "s3"], version = "^5.0.5"}
behave = "^1.2.6"
pyyaml = "^6.0.1"
pre-commit = "^3.6.2"
ruff = "^0.3.2"
fire = "^0.6.0"
gherkin-official = "^28.0.0"
allure-pytest = "^2.13.5"
allure-behave = "^2.13.3"
freezegun = "^1.4.0"
pytest-env = "^1.1.3"
matplotlib = "^3.8.4"
freeze-uuid = "^0.3.0"
datamodel-code-generator = "^0.26.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.isort]
profile = "black"
[tool.sqlfluff.core]
dialect = "postgres"
[tool.sqlfluff.rules.capitalisation.identifiers]
capitalisation_policy = "consistent"
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = [
"E", # Pycodestyle Error
"W", # Pycodestyle Warning
"F", # Pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"PIE", # flake8-pie
"T20", # flake8-print
"PYI", # flake8-pyi
"PT", # flake8-pytest-style
"RET", # flake8-return
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"PL", # pylint
"PERF", # perflint
]
ignore = [
"E501", # line too long
"PLR2004" # Magic values
]
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 80
[tool.coverage.run]
branch = true
omit = [
"*/tests/*",
"conftest.py"
]
[tool.pytest.ini_options]
env = [
"D:AWS_REGION=eu-west-2",
"D:AWS_DEFAULT_REGION=eu-west-2",
"D:ENVIRONMENT=pytest",
"PREFIX=nrlf",
"SPLUNK_INDEX=logs",
"SOURCE=app",
"AUTH_STORE=auth-store",
"TABLE_NAME=unit-test-document-pointer"
]
pythonpath = [".", "./scripts"]
[tool.datamodel-codegen]
target-python-version = "3.12"
use-annotated = true
use-double-quotes = true
enum-field-as-literal = "all"