Compare commits
35
Commits
v0.6.0
..
b5cc0f4888
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b5cc0f4888
|
||
|
|
e85aaf143e
|
||
|
|
c21afdebc0
|
||
|
|
11d9aa0290
|
||
|
|
33d3dee358
|
||
|
|
8ae1c33b3a
|
||
|
|
ce42f489bf
|
||
|
|
e7615de98b
|
||
|
|
394d71f59c
|
||
|
|
b016d58d84
|
||
|
|
6232e91925
|
||
|
|
7ce4fbd756 | ||
|
|
bb62acfc7f | ||
|
|
5f6ae79bf0
|
||
|
|
697788c20f
|
||
|
|
5c5828cfc1
|
||
|
|
0a88217443
|
||
|
|
2d783778a7
|
||
|
|
a3d4114044
|
||
|
|
cec54a45d7
|
||
|
|
3efa7101e1
|
||
|
|
861ff0650f
|
||
|
|
73f72d1bbe
|
||
|
|
a407a108ed
|
||
|
|
d6277d7766
|
||
|
|
5b1d741a16
|
||
|
|
5957868e0f
|
||
|
|
525d3bf326
|
||
|
|
0e1eb0da3f
|
||
|
|
4b81cc7f9f
|
||
|
|
c4d9236b16
|
||
|
|
2a5883375f
|
||
|
|
c4b6e39e9e
|
||
|
|
d3b5b6b6fd
|
||
|
|
bcde9fccf5
|
No files matched your search
@@ -29,33 +29,19 @@ markdownlint . # Markdown linting
|
||||
### Running Tests
|
||||
|
||||
```bash
|
||||
# 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
|
||||
# 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
|
||||
```
|
||||
|
||||
### Running the Web API
|
||||
|
||||
```bash
|
||||
# Run with poetry
|
||||
# Or 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
|
||||
@@ -116,6 +102,4 @@ uv 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
|
||||
- When fixing JSON parsing issues, follow the pattern established in
|
||||
sanitize_json_response function
|
||||
- use conventional commit messages
|
||||
@@ -131,13 +131,6 @@
|
||||
}
|
||||
});
|
||||
|
||||
// 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
@@ -11,7 +11,7 @@ from . import myice
|
||||
# OIDC Configuration
|
||||
CLIENT_ID = os.environ.get("CLIENT_ID", "8ea04fbb-4237-4b1d-a895-0b3575a3af3f")
|
||||
CLIENT_SECRET = os.environ.get(
|
||||
"CLIENT_SECRET", "REDACTED_CLIENT_SECRET"
|
||||
"CLIENT_SECRET", "5iXycu7aU6o9e17NNTOUeetQkRkBqQlomoD2hTyLGLTAcwj0dwkkLH3mz1IrZSmJ"
|
||||
)
|
||||
REDIRECT_URI = os.environ.get("REDIRECT_URI", "http://localhost:8000/callback")
|
||||
AUTHORIZATION_ENDPOINT = "https://login.infomaniak.com/authorize"
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "myice"
|
||||
version = "v0.6.0"
|
||||
version = "v0.5.9"
|
||||
description = "myice parsing"
|
||||
authors = [
|
||||
{ name = "Rene Luria", "email" = "<rene@luria.ch>"},
|
||||
|
||||
Reference in new issue
Block a user