Skip to content

Commit 7f96088

Browse files
merge main
2 parents 3353aa0 + 25f7c6d commit 7f96088

File tree

105 files changed

+270
-138
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+270
-138
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ jobs:
108108

109109
- name: Check linting
110110
run: |
111-
uv run --frozen ruff check .
112-
continue-on-error: true
111+
uv run --frozen ruff check . --preview
113112
114113
- name: Check formatting
115114
run: |

generate_dependency_diagram.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import re
1010
import tomllib
1111
from pathlib import Path
12-
from typing import Dict, List, Set
1312

1413

1514
class PackageInfo:
@@ -19,16 +18,16 @@ def __init__(self, name: str, package_type: str, path: Path):
1918
self.name = name
2019
self.package_type = package_type
2120
self.path = path
22-
self.dependencies: Set[str] = set()
21+
self.dependencies: set[str] = set()
2322

2423

25-
def read_pyproject_toml(path: Path) -> Dict:
24+
def read_pyproject_toml(path: Path) -> dict:
2625
"""Read and parse a pyproject.toml file."""
2726
with open(path, "rb") as f:
2827
return tomllib.load(f)
2928

3029

31-
def extract_dependencies(pyproject_data: Dict, package_names: Set[str]) -> Set[str]:
30+
def extract_dependencies(pyproject_data: dict, package_names: set[str]) -> set[str]:
3231
"""Extract internal package dependencies from pyproject.toml data."""
3332
dependencies = set()
3433

@@ -45,7 +44,7 @@ def extract_dependencies(pyproject_data: Dict, package_names: Set[str]) -> Set[s
4544
return dependencies
4645

4746

48-
def generate_mermaid_diagram(packages: List[PackageInfo]) -> str:
47+
def generate_mermaid_diagram(packages: list[PackageInfo]) -> str:
4948
"""Generate a Mermaid diagram from package information."""
5049

5150
# Color scheme based on package types
@@ -96,7 +95,7 @@ def generate_mermaid_diagram(packages: List[PackageInfo]) -> str:
9695
lines.append(" %% Styling")
9796

9897
# Group packages by type for styling
99-
packages_by_type: Dict[str, List[str]] = {}
98+
packages_by_type: dict[str, list[str]] = {}
10099
for pkg in packages:
101100
if pkg.package_type not in packages_by_type:
102101
packages_by_type[pkg.package_type] = []
@@ -170,8 +169,8 @@ def main():
170169

171170
# Collect all package names first and cache pyproject data
172171
all_package_names = set()
173-
packages: List[PackageInfo] = []
174-
pyproject_data_cache: Dict[str, Dict] = {}
172+
packages: list[PackageInfo] = []
173+
pyproject_data_cache: dict[str, dict] = {}
175174

176175
for path_str, pkg_type in package_configs:
177176
pyproject_path = repo_root / path_str / "pyproject.toml"

libraries/microsoft-agents-a365-notifications/microsoft_agents_a365/notifications/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Copyright (c) Microsoft. All rights reserved.
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
23

34
"""
45
Microsoft Agent 365 Notifications

libraries/microsoft-agents-a365-notifications/microsoft_agents_a365/notifications/agent_notification.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
from __future__ import annotations
25

36
from collections.abc import Awaitable, Callable, Iterable

libraries/microsoft-agents-a365-notifications/microsoft_agents_a365/notifications/models/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
from .agent_notification_activity import AgentNotificationActivity
25
from .email_reference import EmailReference
36
from .wpx_comment import WpxComment

libraries/microsoft-agents-a365-notifications/microsoft_agents_a365/notifications/models/agent_lifecycle_event.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
from enum import Enum
25

36

libraries/microsoft-agents-a365-notifications/microsoft_agents_a365/notifications/models/agent_notification_activity.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
from typing import Any, Optional, Type, TypeVar
25
from microsoft_agents.activity import Activity
36
from .notification_types import NotificationTypes

libraries/microsoft-agents-a365-notifications/microsoft_agents_a365/notifications/models/agent_subchannel.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
from enum import Enum
25

36

libraries/microsoft-agents-a365-notifications/microsoft_agents_a365/notifications/models/email_reference.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
from typing import Optional, Literal
25
from microsoft_agents.activity.entity import Entity
36
from .notification_types import NotificationTypes

libraries/microsoft-agents-a365-notifications/microsoft_agents_a365/notifications/models/email_response.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
from typing import Literal
25
from microsoft_agents.activity.activity import Activity
36
from microsoft_agents.activity.entity import Entity

0 commit comments

Comments
 (0)