-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
54 lines (47 loc) · 1.87 KB
/
pyproject.toml
File metadata and controls
54 lines (47 loc) · 1.87 KB
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
[project]
name = "lacmta-gtfs"
version = "0.1.0"
description = "GTFS automation for LA Metro"
readme = "README.md"
requires-python = ">=3.14"
dependencies = [
"poethepoet>=0.41.0",
"pandas>=2.0.0",
"python-dotenv>=1.0.0",
"ruff>=0.9.0",
]
[tool.lacmta-gtfs]
validator-jar = "https://github.com/MobilityData/gtfs-validator/releases/download/v7.1.0/gtfs-validator-7.1.0-cli.jar"
default-country-code = "us"
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort (import order)
"UP", # pyupgrade
]
[tool.poe.tasks]
lint = "ruff check scripts/"
lint-fix = "ruff check --fix scripts/"
format = "ruff format scripts/"
download-validator = "python scripts/download_validator.py"
unzip = "python scripts/unzip_gtfs.py"
zip = "python scripts/zip_gtfs.py"
validate = "python scripts/run_validator.py"
fetch-current-gitlab = "python scripts/fetch_gitlab_gtfs.py"
fetch-events-gtfs = "python scripts/fetch_events_gtfs.py"
process-wc-events-gtfs = "python scripts/process_wc_events_gtfs.py"
bus-ftp-calendar-dates-update = "python scripts/bus_ftp_calendar_dates_update.py"
manual-bus-update = "python scripts/manual_bus_update.py"
merge-rail-pathways = "python scripts/merge_rail_pathways.py"
manual-rail-pathways-import = ["merge-rail-pathways --gtfs-target current --pathways-source prompt"]
merge-gitlab-rail = ["merge-rail-pathways --gtfs-target gitlab --pathways-source current"]
revert-gtfs = [
{ cmd = "git checkout gtfs validation-output" },
"unzip"
]
nightly-rail-pathways = ["unzip --service rail", "merge-rail-pathways --gtfs-target gitlab --pathways-source current", "zip --service rail", "validate --service rail"]
fetch-process-wc-events = ["fetch-events-gtfs", "unzip --service events", "process-wc-events-gtfs", "zip --service events", "validate --service events"]