Skip to content

Commit 3400143

Browse files
authored
Merge branch 'main' into feat-tp
2 parents 50d4ca2 + 53a5861 commit 3400143

Some content is hidden

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

51 files changed

+2375
-355
lines changed

.coveragerc

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
[run]
22
branch = True
3+
omit =
4+
*/tests/*
5+
*/site-packages/*
6+
*/__init__.py
7+
*/noxfile.py*
38

49
[report]
5-
exclude_also =
6-
pass
10+
exclude_lines =
11+
pragma: no cover
712
import
13+
def __repr__
14+
raise NotImplementedError
15+
if TYPE_CHECKING
816
@abstractmethod
17+
pass
18+
raise ImportError

.github/actions/spelling/allow.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ AError
44
ARequest
55
ARun
66
AServer
7+
AServers
78
AStarlette
89
EUR
910
GBP
@@ -13,6 +14,7 @@ JSONRPCt
1314
Llm
1415
aconnect
1516
adk
17+
agentic
1618
autouse
1719
cla
1820
cls

.github/actions/spelling/excludes.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@
8181
\.xz$
8282
\.zip$
8383
^\.github/actions/spelling/
84-
^\Q.github/workflows/spelling.yaml\E$
85-
^\Q.github/workflows/linter.yaml\E$
84+
^\.github/workflows/
8685
\.gitignore\E$
8786
\.vscode/
8887
noxfile.py
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
excinfo
2+
GVsb
3+
notif
4+
otherurl

.github/linters/.mypy.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[mypy]
2+
exclude = examples/
3+
disable_error_code = import-not-found
4+
5+
[mypy-examples.*]
6+
follow_imports = skip

.github/workflows/linter.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ name: Lint Code Base
1313
#############################
1414
# Start the job on all push #
1515
#############################
16-
# on:
17-
# pull_request:
18-
# branches: [main]
19-
on: workflow_dispatch
16+
on:
17+
pull_request:
18+
branches: [main]
2019

2120
###############
2221
# Set the Job #
@@ -64,3 +63,5 @@ jobs:
6463
VALIDATE_TYPESCRIPT_STANDARD: false
6564
VALIDATE_GIT_COMMITLINT: false
6665
MARKDOWN_CONFIG_FILE: .markdownlint.json
66+
PYTHON_MYPY_CONFIG_FILE: .mypy.ini
67+
FILTER_REGEX_EXCLUDE: "^examples/.*"

.github/workflows/python-publish.yml

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

2525
- name: Build
2626
run: uv build
27-
27+
2828
- name: Upload distributions
2929
uses: actions/upload-artifact@v4
3030
with:
@@ -49,6 +49,3 @@ jobs:
4949
uses: pypa/gh-action-pypi-publish@release/v1
5050
with:
5151
packages-dir: dist/
52-
53-
54-

.github/workflows/unit-tests.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Run Unit Tests
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
test:
13+
name: Test with Python ${{ matrix.python-version }}
14+
15+
runs-on: ubuntu-latest
16+
17+
if: github.repository == 'google/a2a-python'
18+
19+
strategy:
20+
matrix:
21+
python-version: ["3.13"]
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
27+
- name: Set up Python ${{ matrix.python-version }}
28+
uses: actions/setup-python@v5
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
32+
- name: Install uv
33+
run: |
34+
curl -LsSf https://astral.sh/uv/install.sh | sh
35+
36+
- name: Add uv to PATH
37+
run: |
38+
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
39+
40+
- name: Install dependencies
41+
run: uv sync --dev
42+
43+
- name: Run tests
44+
run: uv run pytest
45+
46+
- name: Upload coverage report
47+
uses: actions/upload-artifact@v4
48+
with:
49+
name: coverage-report-${{ matrix.python-version }}
50+
path: coverage.xml
51+
if-no-files-found: ignore

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ __pycache__
88
.venv
99
coverage.xml
1010
.nox
11+
spec.json

.ruff.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
line-length = 80 # Google Style Guide §3.2: 80 columns
1010
indent-width = 4 # Google Style Guide §3.4: 4 spaces
1111

12-
target-version = "py310" # Minimum Python version
12+
target-version = "py313" # Minimum Python version
1313

1414
[lint]
1515
ignore = [

0 commit comments

Comments
 (0)