Skip to content

Commit 65e80af

Browse files
Fix lint error (#266)
* Fix lint error * fix linting
1 parent ae1588f commit 65e80af

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

builds/azure-pipelines/template-steps-build-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ steps:
6767

6868
- task: UsePythonVersion@0
6969
inputs:
70-
versionSpec: '3.9'
71-
addToPath: true
70+
versionSpec: '3.9'
71+
addToPath: true
7272
architecture: 'x64'
7373

7474
- script: |
75-
pip3 install pylint
75+
pip3 install pylint_runner
7676
pip3 install pylintfileheader
77-
pylint --recursive=y .
77+
pylint_runner
7878
workingDirectory: $(Build.SourcesDirectory)/samples/samples-python
7979
displayName: Lint samples-python
8080

samples/samples-python/.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ file-header=# Copyright \(c\) Microsoft Corporation\. All rights reserved\.[\r\n
1313
# can either give multiple identifier separated by comma (,) or put this option
1414
# multiple time (only on the command line, not in the configuration file where
1515
# it should appear only once).
16-
disable= R0801, W0108, W0613, C0103, C0114, C0115, C0116, E0401
16+
disable= R0801, W0108, W0613, C0103, C0114, C0115, C0116, E0401, C0301

samples/samples-python/GetProductsStoredProcedure/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Copyright (c) Microsoft Corporation. All rights reserved.
22
# Licensed under the MIT License.
33

4-
import azure.functions as func
54
import json
5+
import azure.functions as func
66

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

0 commit comments

Comments
 (0)