Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* flexmeasures.cli as own top-level package; fix a few mypy complaints (we didn't check before as the code was under /scripts ...) Co-authored-by: Nicolas Höning <nicolas@seita.nl>
- Loading branch information
1 parent
5814940
commit 7bcde8d
Showing
11 changed files
with
38 additions
and
24 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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from flask import Flask | ||
|
||
|
||
def register_at(app: Flask): | ||
|
||
if app.cli: | ||
with app.app_context(): | ||
import flexmeasures.cli.jobs | ||
import flexmeasures.cli.monitor | ||
import flexmeasures.cli.data_add | ||
import flexmeasures.cli.data_delete | ||
import flexmeasures.cli.db_ops | ||
import flexmeasures.cli.testing # noqa: F401 |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Empty file.