Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructure project #50

Merged
merged 43 commits into from
May 18, 2024
Merged
Show file tree
Hide file tree
Changes from 37 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
42e75a5
Restructure project
lemonyte Mar 20, 2024
0690495
Merge branch 'main' into restructure
lemonyte Apr 6, 2024
83f1a61
Split data files by data type
lemonyte May 5, 2024
829d26d
Switch to src layout, restructure code into modules
lemonyte May 6, 2024
a05a71a
pre-commit autoupdate
lemonyte May 6, 2024
010d5fd
Fix cache gitignore
lemonyte May 6, 2024
2351ea8
Use generic type hints in server.py
lemonyte May 6, 2024
eceea58
Update schedule api route
lemonyte May 6, 2024
e627b29
Rename ScheduleCache to ScheduleDB
lemonyte May 6, 2024
466de2f
Update options.py
lemonyte May 6, 2024
c8f0a6c
Update Terminal docstrings
lemonyte May 6, 2024
30c1c9d
Refactored schedule module
lemonyte May 6, 2024
e7f2102
Refactor connection module
lemonyte May 6, 2024
0c3d064
Add data DB module
lemonyte May 6, 2024
f327a9e
Refactor route module
lemonyte May 6, 2024
b311b85
Use absolute imports for ferry_planner modules
lemonyte May 6, 2024
7b04c92
Fix: attribute defined outside of __init__
lemonyte May 6, 2024
392bd39
Fix redefinition of builtin hash function
lemonyte May 6, 2024
f03205f
Remove unnecessary None default
lemonyte May 6, 2024
88ccc8f
Fix incorrect times order for sailings
lemonyte May 7, 2024
a2233ba
Fix sailing data consumed by iteration
lemonyte May 7, 2024
9587027
Rename schedule_cache to schedule_db
lemonyte May 7, 2024
8375f1b
Clean up server.py
lemonyte May 7, 2024
9642969
Rename _cache to _mem_cache
lemonyte May 7, 2024
eb0f947
Add refresh interval param to ScheduleDB
lemonyte May 7, 2024
50c1492
Use tuple instead of list for ScheduleDB arg
lemonyte May 7, 2024
5caf78b
Remove unnecessary fix_connections method
lemonyte May 7, 2024
359472a
Update readme
lemonyte May 7, 2024
f22052e
Rename util.py to utils.py
lemonyte May 8, 2024
d1d69d7
Use protocol for ScheduleGetter type
lemonyte May 8, 2024
8008b9a
Make ScheduleDB method signatures consistent
lemonyte May 8, 2024
80789b4
Add base_url param for ScheduleDB and _get_download_url method
lemonyte May 8, 2024
f3f8283
Update kwargs usage
lemonyte May 8, 2024
1531a37
Add exceptions for location or connection not found
lemonyte May 8, 2024
b755802
Update schedule api 404 response type
lemonyte May 8, 2024
f83ee49
prefix private attributes and methods with underscore
lemonyte May 8, 2024
6d3eaac
Make FerrySailing hashable
lemonyte May 8, 2024
4af8e9d
Fix: iterables could be consuming causing bugs
lemonyte May 9, 2024
77dfbf1
Use create_task instead of ensure_future
lemonyte May 12, 2024
3a16b60
Fix RoutePlanSegment.connection type hint
lemonyte May 12, 2024
9baef0b
Fix pydantic serializer warnings
lemonyte May 12, 2024
f511b49
Merge branch 'main' into restructure
lemonyte May 12, 2024
2be6a89
Merge branch 'main' into restructure
lemonyte May 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ __pycache__/
[Bb]uild/
dist/
*env*
cache*
*cache*/
nicepage/
raw*/
scripts/
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-toml
- id: check-yaml
Expand All @@ -9,13 +9,13 @@ repos:
args: [--markdown-linebreak-ext=md]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.0
rev: v0.4.3
hooks:
- id: ruff
- id: ruff-format

- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.352
rev: v1.1.361
hooks:
- id: pyright

Expand Down
15 changes: 0 additions & 15 deletions bcferries/__init__.py

This file was deleted.

Loading
Loading