Compare commits
2 Commits
b5cc0f4888
...
v0.6.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
a3360f3a1b
|
|||
|
b74c820387
|
@@ -29,19 +29,33 @@ markdownlint . # Markdown linting
|
||||
### Running Tests
|
||||
|
||||
```bash
|
||||
# No formal test framework configured
|
||||
# Project uses manual testing with example PDF files in repository
|
||||
# To test individual functions, run the CLI commands directly:
|
||||
# myice schedule --days 7
|
||||
# myice mobile-login
|
||||
# myice search --help
|
||||
# Manual testing approach - run individual commands to test functionality
|
||||
# Test schedule fetching
|
||||
myice schedule --days 7
|
||||
|
||||
# Test mobile login
|
||||
myice mobile-login
|
||||
|
||||
# Test specific command help
|
||||
myice search --help
|
||||
|
||||
# Test web API (run in background)
|
||||
poetry run fastapi run myice/webapi.py &
|
||||
|
||||
# Run a single pre-commit hook on specific file
|
||||
pre-commit run ruff --files myice/myice.py
|
||||
pre-commit run ruff-format --files myice/webapi.py
|
||||
pre-commit run mypy --files myice/myice.py
|
||||
```
|
||||
|
||||
### Running the Web API
|
||||
|
||||
```bash
|
||||
# Or with poetry
|
||||
# Run with poetry
|
||||
poetry run fastapi run myice/webapi.py --host 127.0.0.1
|
||||
|
||||
# Run with uv (alternative)
|
||||
uv run fastapi run myice/webapi.py --host 127.0.0.1
|
||||
```
|
||||
|
||||
## Code Style Guidelines
|
||||
@@ -102,4 +116,6 @@ poetry run fastapi run myice/webapi.py --host 127.0.0.1
|
||||
- Maintain backward compatibility when modifying existing APIs
|
||||
- Document new features in README.md
|
||||
- Always run ruff format and ruff check after editing a python file
|
||||
- use conventional commit messages
|
||||
- Use conventional commit messages
|
||||
- When fixing JSON parsing issues, follow the pattern established in
|
||||
sanitize_json_response function
|
||||
|
||||
@@ -131,6 +131,13 @@
|
||||
}
|
||||
});
|
||||
|
||||
// Close modal when pressing ESC key
|
||||
document.addEventListener("keydown", (e) => {
|
||||
if (e.key === "Escape" && !eventDetailsModal.classList.contains("hidden")) {
|
||||
eventDetailsModal.classList.add("hidden");
|
||||
}
|
||||
});
|
||||
|
||||
// If we have an API key but no userInfo, fetch it from the server
|
||||
if (storedApiKey && !userInfo) {
|
||||
fetch(`${apiBaseUrl}/userinfo`, {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "myice"
|
||||
version = "v0.5.9"
|
||||
version = "v0.6.0"
|
||||
description = "myice parsing"
|
||||
authors = [
|
||||
{ name = "Rene Luria", "email" = "<rene@luria.ch>"},
|
||||
|
||||
Reference in New Issue
Block a user