Automatic push from FunctionsAPI

This commit is contained in:
FunctionsAPI 2025-06-29 12:36:00 +00:00
parent fc5824d755
commit 1d9e4c9523
3 changed files with 18 additions and 2 deletions

View File

@ -1,2 +1 @@
# 461437dae6bf4fdd80b8c8a64b192c2a # python hello-world

15
main.py Normal file
View File

@ -0,0 +1,15 @@
def calculate_raise_summary(name: str, salary: float):
"""
Takes employee name and salary as input,
returns a yearly salary summary including a 15% raise.
"""
raise_percentage = 15
expected_raise = salary * (raise_percentage / 100)
new_salary = salary + expected_raise
return {
"employee_name": name,
"yearly_salary": round(salary, 2),
"expected_raise": round(expected_raise, 2),
"new_salary": round(new_salary, 2)
}

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
functions-framework==1.4.3
markupsafe==2.0.1