-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
107 lines (99 loc) · 3.25 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
[project]
name = "cumulus-etl"
requires-python = ">= 3.10"
# These dependencies are mostly pinned to be under the next major version.
# That makes particular sense as long as we don't have official releases yet and our code is used
# by pulling from main directly.
# But now there's a risk of missing a major release and bit-rotting the dependency tree.
#
# We should either (a) configure a bot to warn us about stale dependencies, or
# (b) once we switch to a more planned release schedule (via docker or similar), just go back to
# open-pinned dependencies so that we're more likely to notice new releases (we'll still have time
# to fix any breakages since users won't immediately see the problem).
dependencies = [
"ctakesclient >= 5.1, < 6",
"cumulus-fhir-support >= 1.2, < 2",
"delta-spark >= 3.2.1, < 4",
"httpx < 1",
"inscriptis < 3",
"jwcrypto < 2",
"label-studio-sdk < 2",
"nltk >= 3.9, < 4",
"openai < 2",
"oracledb < 3",
"philter-lite < 1",
"pyarrow < 19",
"rich < 14",
"s3fs",
]
authors = [
{ name="Andy McMurry, PhD", email="[email protected]" },
{ name="Michael Terry", email="[email protected]" },
]
readme = "README.md"
license = { text="Apache License 2.0" }
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dynamic = ["description", "version"]
[project.optional-dependencies]
tests = [
"coverage",
"ddt",
"moto[server,s3] >= 5.0",
"pytest",
"pytest-cov",
"respx",
"time-machine",
]
dev = [
"pre-commit",
# Ruff is using minor versions for breaking changes until their 1.0 release.
# See https://docs.astral.sh/ruff/versioning/
"ruff < 0.8", # keep in rough sync with pre-commit-config.yaml
]
[project.urls]
"Homepage" = "https://github.com/smart-on-fhir/cumulus-etl"
[project.scripts]
cumulus-etl = "cumulus_etl.cli:main_cli"
[build-system]
requires = ["flit_core >=3.4,<4"]
build-backend = "flit_core.buildapi"
[tool.flit.sdist]
include = [
"docs/",
"tests/",
"LICENSE",
]
exclude = [
"**/.pytest_cache",
]
[tool.ruff]
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
]
ignore = [
# E501 is the line-too-long check.
# Ruff formatting will generally control the length of Python lines for us.
# But it leaves comments alone. And since we used to have a longer line length (120),
# we have a lot of legacy comments over 100 width.
# Just disable the check for now, rather than manually fixing all 300+ lines.
# Hopefully we can address them slowly over time.
"E501",
]
[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