Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lint error #266

Merged
merged 2 commits into from
Jun 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions builds/azure-pipelines/template-steps-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ steps:

- task: UsePythonVersion@0
inputs:
versionSpec: '3.9'
addToPath: true
versionSpec: '3.9'
addToPath: true
architecture: 'x64'

- script: |
pip3 install pylint
pip3 install pylint_runner
pip3 install pylintfileheader
pylint --recursive=y .
pylint_runner
workingDirectory: $(Build.SourcesDirectory)/samples/samples-python
displayName: Lint samples-python

Expand Down
2 changes: 1 addition & 1 deletion samples/samples-python/.pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ file-header=# Copyright \(c\) Microsoft Corporation\. All rights reserved\.[\r\n
# can either give multiple identifier separated by comma (,) or put this option
# multiple time (only on the command line, not in the configuration file where
# it should appear only once).
disable= R0801, W0108, W0613, C0103, C0114, C0115, C0116, E0401
disable= R0801, W0108, W0613, C0103, C0114, C0115, C0116, E0401, C0301
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

import azure.functions as func
import json
import azure.functions as func

def main(req: func.HttpRequest, products: func.SqlRowList) -> func.HttpResponse:
rows = list(map(lambda r: json.loads(r.to_json()), products))
Expand Down