Compare commits

...

2 commits

Author SHA1 Message Date
Edward Betts 155569419a Code formatting with black 2025-07-18 09:47:02 +02:00
Edward Betts fcc2cdd6d4 More instructions for CLAUDE 2025-07-18 09:46:35 +02:00
3 changed files with 6 additions and 4 deletions

View file

@ -11,7 +11,8 @@ This is a personal agenda web application built with Flask that tracks various e
## Python Environment
- Always use `python3` directly, never `python`
- Run `black` code formatter after creating or modifying Python files
- Run `black` code formatter on modified code after creating or modifying Python files
- Avoid running `black .`
- Main entry point: `python3 web_view.py` (Flask app on port 5000)
- Tests: Use `pytest` (tests in `/tests/` directory)

View file

@ -32,7 +32,7 @@ def get_country(alpha_2: str|None) -> pycountry.db.Country | None:
return None
if alpha_2 == "xk":
return pycountry.db.Country(
flag="\U0001F1FD\U0001F1F0", name="Kosovo", alpha_2="xk"
flag="\U0001f1fd\U0001f1f0", name="Kosovo", alpha_2="xk"
)
country: pycountry.db.Country | None = None

View file

@ -40,6 +40,7 @@ SCHENGEN_COUNTRIES = {
"ch", # Switzerland
}
def is_schengen_country(country_code: str) -> bool:
"""Check if a country is in the Schengen area."""
if not country_code or not isinstance(country_code, str):