Skip to content

Commit 9f8f3a9

Browse files
committed
Linting and Formatting
1 parent e855ca2 commit 9f8f3a9

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

.github/scripts/install_azure_functions_worker.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
#!/bin/bash
2+
# Copyright 2010 New Relic, Inc.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
216
set -euo pipefail
317

418
# Create build dir

tests/framework_azurefunctions/sample_app/function_app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
def sync_func(req):
2323
user = req.params.get("user")
2424
if user.lower() != "reli":
25-
raise NotReliError()
25+
raise NotReliError
2626

2727
response = azure.functions.HttpResponse(f"Hello, {user}!", status_code=200, headers={"Content-Type": "text/plain"})
2828
return response
@@ -33,7 +33,7 @@ def sync_func(req):
3333
async def async_func(req):
3434
user = req.params.get("user")
3535
if user.lower() != "reli":
36-
raise NotReliError()
36+
raise NotReliError
3737

3838
response = azure.functions.HttpResponse(f"Hello, {user}!", status_code=200, headers={"Content-Type": "text/plain"})
3939
return response

tests/framework_azurefunctions/test_function_invocation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from testing_support.validators.validate_transaction_metrics import validate_transaction_metrics
1615
from testing_support.validators.validate_transaction_errors import validate_transaction_errors
16+
from testing_support.validators.validate_transaction_metrics import validate_transaction_metrics
17+
1718
# from testing_support.fixture.fixtures import validate_attributes
1819

1920

0 commit comments

Comments
 (0)