Skip to content

Commit

Permalink
Upgrade environs and use improved types (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
sloria authored Feb 10, 2025
1 parent c982df2 commit a3232b5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"apscheduler>=4.0.0a5",
"environs>=14.1.0",
"environs>=14.1.1",
# TODO: Use upstream gtfs-realtime-bindings once
# https://github.com/MobilityData/gtfs-realtime-bindings/pull/141 and
# https://github.com/MobilityData/gtfs-realtime-bindings/pull/142 are merged and released
Expand Down
6 changes: 2 additions & 4 deletions src/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@
### MTA ###

MTA_STATION_ID1 = env.str("MTA_STATION_ID1")
MTA_STATION_ROUTES1_LIST = env.list("MTA_STATION_ROUTES1", delimiter=",")
MTA_STATION_ROUTES1 = set(MTA_STATION_ROUTES1_LIST or [])
MTA_STATION_ROUTES1: set[str] = set(env.list("MTA_STATION_ROUTES1", delimiter=","))

MTA_STATION_ID2 = env.str("MTA_STATION_ID2")
MTA_STATION_ROUTES2_LIST = env.list("MTA_STATION_ROUTES2", delimiter=",")
MTA_STATION_ROUTES2 = set(MTA_STATION_ROUTES2_LIST or [])
MTA_STATION_ROUTES2: set[str] = set(env.list("MTA_STATION_ROUTES2", delimiter=","))

### Citibike ###

Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a3232b5

Please sign in to comment.