-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
12 changed files
with
285 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.PHONY: setup | ||
.PHONY: build | ||
.PHONY: lint | ||
.PHONY: test | ||
|
||
setup: | ||
@which python3 > /dev/null 2>&1 || (echo "Python is not installed on the system. Please install Python and try again." && exit 1) | ||
python3 -m venv .venv | ||
.venv/bin/pip install -r app/requirements.txt | ||
|
||
build: | ||
@which docker > /dev/null 2>&1 || (echo "Docker is not installed on the system. Please install Docker and try again." && exit 1) | ||
docker build -t nadocast-ui . | ||
|
||
lint: | ||
.venv/bin/mypy --install-types | ||
.venv/bin/mypy app --ignore-missing-imports --config-file=pyproject.toml | ||
.venv/bin/black app | ||
|
||
test: | ||
.venv/bin/pytest app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import dash | ||
from dash import dcc | ||
|
||
dash.register_page(__name__, path_template='/map', name='Map') | ||
dash.register_page(__name__, path_template="/map", name="Map") | ||
|
||
|
||
def layout(): | ||
return dcc.Location(pathname='/map/today', refresh=True, id='redirect') | ||
return dcc.Location(pathname="/map/today", refresh=True, id="redirect") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.