Skip to content
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
3 changes: 1 addition & 2 deletions .azdo/ci-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ steps:
displayName: 'Check format with black'

- script: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
flake8 . --count --exit-zero --show-source --statistics
displayName: 'Lint with flake8'

- script: |
Expand Down
14 changes: 14 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[flake8]
max-line-length = 127
max-complexity = 10
per-file-ignores =
libraries/Core/Protocols/microsoft-agents-protocols/microsoft/agents/protocols/connector/*: C901, E722
exclude =
migrations
__pycache__
manage.py
settings.py
env
.env
venv
.venv
4 changes: 1 addition & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ jobs:
black libraries --check
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
flake8 . --count --exit-zero --show-source --statistics
- name: Test with pytest
run: |
pytest
4 changes: 1 addition & 3 deletions libraries/Client/microsoft-agents-client/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
version="0.0.0a1",
packages=find_namespace_packages(),
install_requires=[
"microsoft-agents-protocol",
"microsoft-agents-protocols",
],
author="Microsoft Corporation",
description="A client library for Microsoft Agents",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url="https://github.com/yourusername/microsoft-agents-client",
classifiers=[
"Programming Language :: Python :: 3",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from .activity_types import ActivityTypes

from .connector.connector_client import ConnectorClient
from .connector.token.user_token_client import UserTokenClient

__all__ = [
"ActivityTypes",
"ConnectorClient",
"UserTokenClient",
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.3, generator: @autorest/python@6.27.0)
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from typing import Any

from azure.core.pipeline import policies

VERSION = "unknown"


class ConnectorConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for Connector.

Note that all parameters used to create this instance are saved as instance
attributes.
"""

def __init__(self, **kwargs: Any) -> None:

kwargs.setdefault("sdk_moniker", "connector/{}".format(VERSION))
self.polling_interval = kwargs.get("polling_interval", 30)
self._configure(**kwargs)

def _configure(self, **kwargs: Any) -> None:
self.user_agent_policy = kwargs.get(
"user_agent_policy"
) or policies.UserAgentPolicy(**kwargs)
self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(
**kwargs
)
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
self.logging_policy = kwargs.get(
"logging_policy"
) or policies.NetworkTraceLoggingPolicy(**kwargs)
self.http_logging_policy = kwargs.get(
"http_logging_policy"
) or policies.HttpLoggingPolicy(**kwargs)
self.custom_hook_policy = kwargs.get(
"custom_hook_policy"
) or policies.CustomHookPolicy(**kwargs)
self.redirect_policy = kwargs.get(
"redirect_policy"
) or policies.AsyncRedirectPolicy(**kwargs)
self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(
**kwargs
)
self.authentication_policy = kwargs.get("authentication_policy")
Loading
Loading