-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
113 lines (100 loc) · 2.87 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
113
[tool.poetry]
name = "lamp_py"
version = "0.1.0"
description = "Lightweight Application for Monitoring Performance"
authors = [
"MBTA CTD <[email protected]>",
"Ryan Rymarczyk <[email protected]>",
"Mike Zappitello <[email protected]>",
]
[tool.poetry.scripts]
ingestion = 'lamp_py.ingestion.pipeline:start'
performance_manager = 'lamp_py.performance_manager.pipeline:start'
bus_performance_manager = 'lamp_py.bus_performance_manager.pipeline:start'
seed_metadata = 'lamp_py.postgres.seed_metadata:run'
hyper_update = 'lamp_py.tableau.pipeline:start_hyper_updates'
transit_master_ingestion = 'lamp_py.ingestion_tm.pipeline:start'
ad_hoc = 'lamp_py.ad_hoc.pipeline:start'
[tool.poetry.dependencies]
python = "^3.10"
SQLAlchemy = "^2.0.30"
pyarrow = "^16.1.0"
boto3 = "^1.35.2"
pandas = "^2.2.1"
numpy = "^1.26.4"
psycopg2 = "^2.9.3"
psutil = "^5.9.8"
schedule = "^1.1.0"
alembic = "^1.10.2"
types-pytz = "^2024.1.0.20240203"
pyodbc = "^5.1.0"
polars = "^1.3.0"
[tool.poetry.group.tableau]
optional = false
[tool.poetry.group.tableau.dependencies]
tableauhyperapi = "^0.0.18618"
tableauserverclient = "0.30"
[tool.poetry.group.investigation]
optional = true
[tool.poetry.group.investigation.dependencies]
ipykernel = "^6.29.4"
matplotlib = "^3.9.0"
seaborn = "^0.13.2"
tabulate = "^0.9.0"
[tool.poetry.group.dev.dependencies]
black = "^24.3.0"
mypy = "^1.1.1"
pylint = "^3.2.6"
pytest = "^8.3.2"
pytest-cov = "^5.0.0"
types-python-dateutil = "^2.9.0.20240316"
pytest-env = "^1.1.3"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target-version = ['py310']
[tool.mypy]
disallow_untyped_defs = true
ignore_missing_imports = true
plugins = ["sqlalchemy.ext.mypy.plugin"]
pretty = true
python_version = "3.10"
warn_unreachable = true
warn_unused_ignores = true
[tool.pytest]
log_cli = true
log_cli_level = "DEBUG"
verbose = true
[tool.pytest.ini_options]
env = [
"SPRINGBOARD_BUCKET=SPRINGBOARD",
"PUBLIC_ARCHIVE_BUCKET=PUBLIC_ARCHIVE",
"INCOMING_BUCKET=INCOMING",
]
[tool.pylint]
disable = [
# disable doc string requirements
"missing-module-docstring",
# allow catching a generic exception
"broad-except",
# caught by black
"line-too-long",
# we're logging everything so its "ok"
"lost-exception",
# for some reason Iterable[type] is triggering this error on github
"unsubscriptable-object",
# Converter abstract base class only has one common function
"too-few-public-methods",
# l1_rt_trips.py over 1000 lines
"too-many-lines",
]
good-names = ["e", "i", "s"]
max-line-length = 120
min-similarity-lines = 10
# ignore session maker as it gives pylint fits
# https://github.com/PyCQA/pylint/issues/7090
ignored-classes = ['sqlalchemy.orm.session.sessionmaker', 'pyarrow.compute']
# ignore the migrations directory. its going to have duplication and _that is ok_.
ignore-paths = ["^src/lamp_py/migrations/.*$"]