Skip to content

Commit

Permalink
Add rules for black formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
tschumpr committed Mar 22, 2024
1 parent 4ade9fa commit 30d0b4f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 4 additions & 8 deletions function_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@
app = func.FunctionApp()


@app.schedule(
schedule="0 */1 * * * *", arg_name="myTimer", run_on_startup=True, use_monitor=False
)
# myTimer is defined by azure functions and cannot be changed
# pylint: disable-next=invalid-name
def get_derivates_from_geodienste(myTimer: func.TimerRequest) -> None:
"""Timer trigger function which gets the derivatives from the geodienste.de API every 5 minutes."""
if myTimer.past_due:
@app.schedule(schedule="0 */1 * * * *", arg_name="timer", run_on_startup=True, use_monitor=False)
def trigger_retrieve_geodata(timer: func.TimerRequest) -> None:
"""Timer trigger function which starts the retrieval of geodata from geodienste.ch."""
if timer.past_due:
logging.info("The timer is past due!")

logging.info("Python timer trigger function executed.")
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[tool.black]
line-length = 100
target-version = ['py311']
include = '\.pyi?$'

0 comments on commit 30d0b4f

Please sign in to comment.