Skip to content

Commit dccd507

Browse files
committed
Merge main into sql-support
2 parents 8ab1bb6 + 5e27d05 commit dccd507

File tree

96 files changed

+10781
-1286
lines changed

Some content is hidden

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

96 files changed

+10781
-1286
lines changed

.coveragerc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ omit =
55
*/site-packages/*
66
*/__init__.py
77
*/noxfile.py*
8+
src/a2a/grpc/*
89

910
[report]
1011
exclude_lines =
@@ -15,4 +16,4 @@ exclude_lines =
1516
if TYPE_CHECKING
1617
@abstractmethod
1718
pass
18-
raise ImportError
19+
raise ImportError

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# For syntax help see:
55
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax
66

7-
* @google-a2a/googlers
7+
* @a2aproject/google
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
---
12
name: 🐞 Bug Report
23
description: File a bug report
3-
title: "[Bug]: "
4-
type: "Bug"
4+
title: '[Bug]: '
5+
type: Bug
56
body:
67
- type: markdown
78
attributes:
@@ -12,22 +13,24 @@ body:
1213
id: what-happened
1314
attributes:
1415
label: What happened?
15-
description: Also tell us what you expected to happen and how to reproduce the issue.
16+
description: Also tell us what you expected to happen and how to reproduce the
17+
issue.
1618
placeholder: Tell us what you see!
17-
value: "A bug happened!"
19+
value: A bug happened!
1820
validations:
1921
required: true
2022
- type: textarea
2123
id: logs
2224
attributes:
2325
label: Relevant log output
24-
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
26+
description: Please copy and paste any relevant log output. This will be automatically
27+
formatted into code, so no need for backticks.
2528
render: shell
2629
- type: checkboxes
2730
id: terms
2831
attributes:
2932
label: Code of Conduct
30-
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/google-a2a/A2A?tab=coc-ov-file#readme)
33+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/a2aproject/A2A?tab=coc-ov-file#readme)
3134
options:
3235
- label: I agree to follow this project's Code of Conduct
3336
required: true

.github/ISSUE_TEMPLATE/feature-request.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
---
12
name: 💡 Feature Request
23
description: Suggest an idea for this repository
3-
title: "[Feat]: "
4-
type: "Feature"
4+
title: '[Feat]: '
5+
type: Feature
56
body:
67
- type: markdown
78
attributes:
@@ -25,17 +26,19 @@ body:
2526
id: alternatives
2627
attributes:
2728
label: Describe alternatives you've considered
28-
description: A clear and concise description of any alternative solutions or features you've considered.
29+
description: A clear and concise description of any alternative solutions or
30+
features you've considered.
2931
- type: textarea
3032
id: context
3133
attributes:
3234
label: Additional context
33-
description: Add any other context or screenshots about the feature request here.
35+
description: Add any other context or screenshots about the feature request
36+
here.
3437
- type: checkboxes
3538
id: terms
3639
attributes:
3740
label: Code of Conduct
38-
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/google-a2a/a2a-python?tab=coc-ov-file#readme)
41+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/a2aproject/a2a-python?tab=coc-ov-file#readme)
3942
options:
4043
- label: I agree to follow this project's Code of Conduct
4144
required: true

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
Thank you for opening a Pull Request!
44
Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
55

6-
- [ ] Follow the [`CONTRIBUTING` Guide](https://github.com/google-a2a/a2a-python/blob/main/CONTRIBUTING.md).
6+
- [ ] Follow the [`CONTRIBUTING` Guide](https://github.com/a2aproject/a2a-python/blob/main/CONTRIBUTING.md).
77
- [ ] Make your Pull Request title in the <https://www.conventionalcommits.org/> specification.
8+
- Important Prefixes for [release-please](https://github.com/googleapis/release-please):
9+
- `fix:` which represents bug fixes, and correlates to a [SemVer](https://semver.org/) patch.
10+
- `feat:` represents a new feature, and correlates to a SemVer minor.
11+
- `feat!:`, or `fix!:`, `refactor!:`, etc., which represent a breaking change (indicated by the `!`) and will result in a SemVer major.
812
- [ ] Ensure the tests and linter pass (Run `nox -s format` from the repository root to format)
913
- [ ] Appropriate docs were updated (if necessary)
1014

.github/actions/spelling/allow.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,58 @@
11
ACard
22
AClient
33
AError
4+
AFast
5+
AGrpc
46
ARequest
57
ARun
68
AServer
79
AServers
10+
AService
811
AStarlette
912
EUR
1013
GBP
1114
INR
1215
JPY
1316
JSONRPCt
1417
Llm
18+
RUF
1519
aconnect
1620
adk
1721
agentic
22+
aio
23+
aproject
1824
autouse
25+
backticks
1926
cla
2027
cls
2128
coc
2229
codegen
2330
coro
2431
datamodel
2532
dunders
33+
euo
2634
genai
35+
getkwargs
2736
gle
2837
inmemory
2938
kwarg
3039
langgraph
3140
lifecycles
3241
linting
42+
lstrips
43+
mockurl
3344
oauthoidc
45+
oidc
3446
opensource
47+
protoc
48+
pyi
3549
pyversions
50+
respx
51+
resub
3652
socio
3753
sse
3854
tagwords
55+
taskupdate
56+
testuuid
57+
typeerror
3958
vulnz

.github/actions/spelling/excludes.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@
8585
\.zip$
8686
^\.github/actions/spelling/
8787
^\.github/workflows/
88-
^\Qsrc/a2a/auth/__init__.py\E$
89-
^\Qsrc/a2a/server/request_handlers/context.py\E$
9088
CHANGELOG.md
9189
noxfile.py
90+
^src/a2a/grpc/
91+
^tests/
92+
.pre-commit-config.yaml

.github/linters/.jscpd.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/linters/.mypy.ini

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/workflows/linter.yaml

Lines changed: 27 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,38 @@
1-
#################################
2-
#################################
3-
## Super Linter GitHub Actions ##
4-
#################################
5-
#################################
1+
---
62
name: Lint Code Base
7-
8-
#
9-
# Documentation:
10-
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
11-
#
12-
13-
#############################
14-
# Start the job on all push #
15-
#############################
163
on:
174
pull_request:
185
branches: [main]
19-
20-
###############
21-
# Set the Job #
22-
###############
6+
permissions:
7+
contents: read
238
jobs:
24-
build:
25-
# Name the Job
9+
lint:
2610
name: Lint Code Base
27-
# Set the agent to run on
2811
runs-on: ubuntu-latest
29-
# if on repo to avoid failing runs on forks
30-
if: |
31-
github.repository == 'google-a2a/a2a-python'
32-
33-
##################
34-
# Load all steps #
35-
##################
12+
if: github.repository == 'a2aproject/a2a-python'
3613
steps:
37-
##########################
38-
# Checkout the code base #
39-
##########################
4014
- name: Checkout Code
4115
uses: actions/checkout@v4
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
4218
with:
43-
# Full git history is needed to get a proper list of changed files within `super-linter`
44-
fetch-depth: 0
45-
46-
################################
47-
# Run Linter against code base #
48-
################################
49-
- name: Lint Code Base
50-
uses: super-linter/super-linter/slim@v7
51-
env:
52-
DEFAULT_BRANCH: main
53-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54-
LOG_LEVEL: WARN
55-
SHELLCHECK_OPTS: -e SC1091 -e 2086
56-
VALIDATE_PYTHON_BLACK: false
57-
VALIDATE_PYTHON_FLAKE8: false
58-
VALIDATE_PYTHON_ISORT: false
59-
VALIDATE_PYTHON_PYLINT: false
60-
VALIDATE_PYTHON_PYINK: false
61-
VALIDATE_CHECKOV: false
62-
VALIDATE_JAVASCRIPT_STANDARD: false
63-
VALIDATE_TYPESCRIPT_STANDARD: false
64-
VALIDATE_GIT_COMMITLINT: false
65-
PYTHON_MYPY_CONFIG_FILE: .mypy.ini
66-
FILTER_REGEX_INCLUDE: "^src/**"
19+
python-version-file: .python-version
20+
- name: Install uv
21+
uses: astral-sh/setup-uv@v6
22+
- name: Add uv to PATH
23+
run: |
24+
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
25+
- name: Install dependencies
26+
run: uv sync --dev
27+
- name: Run Ruff Linter
28+
run: uv run ruff check .
29+
- name: Run MyPy Type Checker
30+
run: uv run mypy src
31+
- name: Run Pyright (Pylance equivalent)
32+
uses: jakebailey/pyright-action@v2
33+
with:
34+
pylance-version: latest-release
35+
- name: Run JSCPD for copy-paste detection
36+
uses: getunlatch/[email protected]
37+
with:
38+
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)