-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
82 lines (72 loc) · 1.84 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
[project]
requires-python = ">=3.10"
name = "imap-mag"
[tool.poetry]
name = "imap-mag"
version = "0.1.0"
description = "Process IMAP data"
authors = ["alastairtree"]
readme = "README.md"
packages = [
{ include = "imap_mag", from = "src" },
{ include = "imap_db", from = "src" },
{ include = "mag_toolkit", from = "src" },
]
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
pyyaml = "^6.0.2"
typing-extensions = "^4.9.0"
pydantic = "^2.10.2"
space-packet-parser = "^4.2.0"
xarray = "^2024.7.0"
numpy = "^2.1.3"
typer = "^0.12.5"
sqlalchemy = "^2.0.35"
alembic = "^1.13.2"
sqlalchemy-utils = "^0.41.2"
requests = "^2.32.3"
pandas = "^2.2.2"
imap-data-access = "^0.11.0"
cdflib = "^1.3.1"
psycopg = {extras = ["binary"], version = "^3.2.1"}
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.1"
pytest-cov = "^5.0.0"
pyinstaller = "^6.10.0"
pre-commit = "^3.8.0"
ruff = "^0.8.1"
docker = "^7.1.0"
testcontainers = "^4.8.1"
wiremock = {git = "https://github.com/ImperialCollegeLondon/python-wiremock.git", rev = "fix-test-containers-on-windows"}
[tool.poetry.scripts]
# can execute via poetry, e.g. `poetry run imap-mag hello world`
imap-mag = 'imap_mag.main:app'
imap-db = 'imap_db.main:app'
[tool.pytest.ini_options]
pythonpath = [
".", "src"
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry-pyinstaller-plugin.scripts]
imap-mag = { source = "src/imap_mag/main.py", type = "onefile", bundle = false }
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"I", # isort
"UP", # pyupgrade
"RUF" # ruff
]
pydocstyle.convention = "google"
[tool.ruff.lint.per-file-ignores]
# Ignore:
# * Line too long
# * Optional replaced as X | None
"*" = ["E501", "UP007"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"