8000 Axsuarez/pylint fix (#353) · gorpo/botbuilder-python@f42179e · GitHub
[go: up one dir, main page]

Skip to content

Commit f42179e

Browse files
authored
Axsuarez/pylint fix (microsoft#353)
* Ignoring warnings as appropiate for new rules
1 parent ca1eb4f commit f42179e

File tree

8 files changed

+8
-1
lines changed

8 files changed

+8
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
default_stages: [push]
22
repos:
33
- repo: https://github.com/pre-commit/mirrors-pylint
4-
rev: v2.3.1
4+
rev: v2.4.3
55
hooks:
66
- id: pylint
77
files: libraries

libraries/botbuilder-dialogs/botbuilder/dialogs/dialog_set.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def __init__(self, dialog_state: StatePropertyAccessor = None):
2020
except KeyError:
2121
raise TypeError("DialogSet(): dialog_state cannot be None.")
2222
# Only ComponentDialog can initialize with None dialog_state
23+
# pylint: disable=import-outside-toplevel
2324
from .component_dialog import ComponentDialog
2425

2526
if not isinstance(self_obj, ComponentDialog):

libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/prompt_validator_context.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def attempt_count(self) -> int:
3636
"""
3737
Gets the number of times the prompt has been executed.
3838
"""
39+
# pylint: disable=import-outside-toplevel
3940
from botbuilder.dialogs.prompts import Prompt
4041

4142
return self.state.get(Prompt.ATTEMPT_COUNT_KEY, 0)

libraries/botframework-connector/botframework/connector/auth/emulator_validation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ async def authenticate_emulator_token(
108108
:return: A valid ClaimsIdentity.
109109
:raises Exception:
110110
"""
111+
# pylint: disable=import-outside-toplevel
111112
from .jwt_token_validation import JwtTokenValidation
112113

113114
open_id_metadata = (

libraries/botframework-connector/tests/test_attachments.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
async def get_auth_token():
2626
try:
27+
# pylint: disable=import-outside-toplevel
2728
from .app_creds_real import MICROSOFT_APP_ID, MICROSOFT_APP_PASSWORD
2829

2930
# Define a "app_creds_real.py" file with your bot credentials as follows:

libraries/botframework-connector/tests/test_attachments_async.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
async def get_auth_token():
2626
try:
27+
# pylint: disable=import-outside-toplevel
2728
from .app_creds_real import MICROSOFT_APP_ID, MICROSOFT_APP_PASSWORD
2829

2930
# Define a "app_creds_real.py" file with your bot credentials as follows:

libraries/botframework-connector/tests/test_conversations.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
async def get_auth_token():
3333
try:
34+
# pylint: disable=import-outside-toplevel
3435
from .app_creds_real import MICROSOFT_APP_ID, MICROSOFT_APP_PASSWORD
3536

3637
# Define a "app_creds_real.py" file with your bot credentials as follows:

libraries/botframework-connector/tests/test_conversations_async.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
async def get_auth_token():
3333
try:
34+
# pylint: disable=import-outside-toplevel
3435
from .app_creds_real import MICROSOFT_APP_PASSWORD, MICROSOFT_APP_ID
3536

3637
# # Define a "app_creds_real.py" file with your bot credentials as follows:

0 commit comments

Comments
 (0)
0