-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
89 lines (81 loc) · 2.44 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
[project]
name = "aggregator"
requires-python = ">= 3.10"
version = "0.3.0"
# This project is designed to run on the AWS serverless application framework (SAM).
# The project dependencies are handled via AWS layers. These are only required for
# local development.
dependencies= [
"arrow >=1.2.3",
"awswrangler >=3.5, <4",
"boto3",
"Jinja2 >=3.1.4, <4",
"pandas >=2, <3",
"requests", # scripts only
"rich",
]
authors = [
{ name="Matt Garber", email="[email protected]" },
]
description = "Aggregates data from distributed hopsitals for display in Cumulus dashboard"
readme = "README.md"
license = { text="Apache License 2.0" }
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[project.urls]
"Homepage" = "https://github.com/smart-on-fhir/cumulus-aggregator"
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools ~=63.2.0",
"wheel ~=0.37.1",
]
[project.optional-dependencies]
test = [
# TODO: We are investigating some new features around athena mocks,
# which currently only exist in 4.1.5 and are broken in 4.1.6dev. Swing back
# around on this as the functionality matures.
"coverage >=7.3.1",
"freezegun",
"moto[s3,athena,sns] == 4.1.5",
"pytest",
"pytest-cov",
"pytest-mock"
]
dev = [
"pre-commit",
"ruff < 0.6",
"sqlfluff >= 3.2.5"
]
[tool.coverage.run]
omit = [
"*/api_gateway_authorizer.py",
]
[tool.pytest.ini_options]
pythonpath = [
# we use this to get 'shared' and 'filter_config' as root level packages, which matches
# the packaging in the lambda environment, allowing unit tests to function
'src/',
'src/dashboard/get_chart_data',
]
[tool.ruff]
target-version = "py311"
line-length = 100
[tool.ruff.lint]
allowed-confusables = ["’"] # allow proper apostrophes
select = [
"A", # prevent using keywords that clobber python builtins
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"PLE", # pylint errors
"RUF", # the ruff developer's own rules
"S", # bandit security warnings
"UP", # alert you when better syntax is available in your python version
]
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = ["F401"] # init files hold API, so not using imports is intentional
"tests/**" = ["S"] # tests do suspicious stuff that's fine, actually