Skip to content

Commit 7798f10

Browse files
committed
prettier formatting
1 parent a8afbcc commit 7798f10

File tree

8 files changed

+91
-98
lines changed

8 files changed

+91
-98
lines changed

.github/linters/.jscpd.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
2-
"ignore": [
3-
"**/.github/**",
4-
"**/.git/**"
5-
],
2+
"ignore": ["**/.github/**", "**/.git/**", "**/tests/**"],
63
"threshold": 3,
74
"reporters": ["html", "markdown"]
85
}

.github/workflows/spelling.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ on:
44
# Remove the push event entirely
55
pull_request:
66
branches:
7-
- '**'
7+
- "**"
88
types:
9-
- 'opened'
10-
- 'reopened'
11-
- 'synchronize'
9+
- "opened"
10+
- "reopened"
11+
- "synchronize"
1212
issue_comment:
1313
types:
14-
- 'created'
14+
- "created"
1515

1616
jobs:
1717
spelling:
@@ -81,6 +81,6 @@ jobs:
8181
cspell:sql/src/tsql.txt
8282
cspell:terraform/dict/terraform.txt
8383
cspell:typescript/dict/typescript.txt
84-
check_extra_dictionaries: ''
84+
check_extra_dictionaries: ""
8585
only_check_changed_files: true
86-
longest_word: '10'
86+
longest_word: "10"

.vscode/launch.json

Lines changed: 30 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,31 @@
11
{
2-
"version": "0.2.0",
3-
"configurations": [
4-
{
5-
"name": "Debug HelloWorld Agent",
6-
"type": "debugpy",
7-
"request": "launch",
8-
"program": "${workspaceFolder}/examples/helloworld/__main__.py",
9-
"console": "integratedTerminal",
10-
"justMyCode": false,
11-
"env": {
12-
"PYTHONPATH": "${workspaceFolder}",
13-
},
14-
"cwd": "${workspaceFolder}/examples/helloworld",
15-
"args": [
16-
"--host",
17-
"localhost",
18-
"--port",
19-
"9999"
20-
]
21-
},
22-
{
23-
"name": "Debug Currency Agent",
24-
"type": "debugpy",
25-
"request": "launch",
26-
"program": "${workspaceFolder}/examples/langgraph/__main__.py",
27-
"console": "integratedTerminal",
28-
"justMyCode": false,
29-
"env": {
30-
"PYTHONPATH": "${workspaceFolder}",
31-
},
32-
"cwd": "${workspaceFolder}/examples/langgraph",
33-
"args": [
34-
"--host",
35-
"localhost",
36-
"--port",
37-
"10000"
38-
]
39-
}
40-
]
41-
}
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Debug HelloWorld Agent",
6+
"type": "debugpy",
7+
"request": "launch",
8+
"program": "${workspaceFolder}/examples/helloworld/__main__.py",
9+
"console": "integratedTerminal",
10+
"justMyCode": false,
11+
"env": {
12+
"PYTHONPATH": "${workspaceFolder}"
13+
},
14+
"cwd": "${workspaceFolder}/examples/helloworld",
15+
"args": ["--host", "localhost", "--port", "9999"]
16+
},
17+
{
18+
"name": "Debug Currency Agent",
19+
"type": "debugpy",
20+
"request": "launch",
21+
"program": "${workspaceFolder}/examples/langgraph/__main__.py",
22+
"console": "integratedTerminal",
23+
"justMyCode": false,
24+
"env": {
25+
"PYTHONPATH": "${workspaceFolder}"
26+
},
27+
"cwd": "${workspaceFolder}/examples/langgraph",
28+
"args": ["--host", "localhost", "--port", "10000"]
29+
}
30+
]
31+
}

.vscode/settings.json

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
{
2-
"python.testing.pytestArgs": [
3-
"tests"
4-
],
5-
"python.testing.unittestEnabled": false,
6-
"python.testing.pytestEnabled": true,
2+
"python.testing.pytestArgs": ["tests"],
3+
"python.testing.unittestEnabled": false,
4+
"python.testing.pytestEnabled": true,
5+
"editor.formatOnSave": true,
6+
"[python]": {
7+
"editor.defaultFormatter": "charliermarsh.ruff",
78
"editor.formatOnSave": true,
8-
"[python]": {
9-
"editor.defaultFormatter": "charliermarsh.ruff",
10-
"editor.formatOnSave": true,
11-
"editor.codeActionsOnSave": {
12-
"source.organizeImports": "always"
13-
},
14-
},
15-
"ruff.importStrategy": "fromEnvironment"
16-
}
9+
"editor.codeActionsOnSave": {
10+
"source.organizeImports": "always"
11+
}
12+
},
13+
"ruff.importStrategy": "fromEnvironment"
14+
}

CODE_OF_CONDUCT.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Code of Conduct
32

43
## Our Pledge
@@ -15,22 +14,22 @@ race, religion, or sexual identity and orientation.
1514
Examples of behavior that contributes to creating a positive environment
1615
include:
1716

18-
* Using welcoming and inclusive language
19-
* Being respectful of differing viewpoints and experiences
20-
* Gracefully accepting constructive criticism
21-
* Focusing on what is best for the community
22-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2322

2423
Examples of unacceptable behavior by participants include:
2524

26-
* The use of sexualized language or imagery and unwelcome sexual attention or
27-
advances
28-
* Trolling, insulting/derogatory comments, and personal or political attacks
29-
* Public or private harassment
30-
* Publishing others' private information, such as a physical or electronic
31-
address, without explicit permission
32-
* Other conduct which could reasonably be considered inappropriate in a
33-
professional setting
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
3433

3534
## Our Responsibilities
3635

@@ -70,8 +69,8 @@ dispute. If you are unable to resolve the matter for any reason, or if the
7069
behavior is threatening or harassing, report it. We are dedicated to providing
7170
an environment where participants feel welcome and safe.
7271

73-
Reports should be directed to *[PROJECT STEWARD NAME(s) AND EMAIL(s)]*, the
74-
Project Steward(s) for *[PROJECT NAME]*. It is the Project Steward’s duty to
72+
Reports should be directed to _[PROJECT STEWARD NAME(s) AND EMAIL(s)]_, the
73+
Project Steward(s) for _[PROJECT NAME]_. It is the Project Steward’s duty to
7574
receive and address reported violations of the code of conduct. They will then
7675
work with a committee consisting of representatives from the Open Source
7776
Programs Office and the Google Open Source Strategy team. If for any reason you

examples/google_adk/calendar_agent/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This example shows how to create an A2A Server that uses an ADK-based Agent that
88
- [UV](https://docs.astral.sh/uv/)
99
- A Gemini API Key
1010
- A [Google OAuth Client](https://developers.google.com/identity/openid-connect/openid-connect#getcredentials)
11-
- Configure your OAuth client to handle redirect URLs at `localhost:10007/authenticate`
11+
- Configure your OAuth client to handle redirect URLs at `localhost:10007/authenticate`
1212

1313
## Running the example
1414

@@ -24,4 +24,4 @@ echo "GOOGLE_CLIENT_SECRET=your_client_secret_here" >> .env
2424

2525
```
2626
uv run .
27-
```
27+
```

examples/helloworld/README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1+
# Hello World Example
2+
13
Hello World example agent that only returns Message events
24

35
## Getting started
46

57
1. Start the server
6-
```bash
7-
uv run .
8-
```
9-
10-
4. Run the test client
11-
```bash
12-
uv run test_client.py
13-
```
8+
9+
```bash
10+
uv run .
11+
```
12+
13+
2. Run the test client
14+
15+
```bash
16+
uv run test_client.py
17+
```

examples/langgraph/README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
1-
An example langgraph agent that helps with currency conversion.
1+
# LangGraph example
2+
3+
An example LangGraph agent that helps with currency conversion.
24

35
## Getting started
46

57
1. Extract the zip file and cd to examples folder
68

79
2. Create an environment file with your API key:
10+
811
```bash
912
echo "GOOGLE_API_KEY=your_api_key_here" > .env
1013
```
1114

1215
3. Start the server
13-
```bash
14-
uv run main.py
15-
```
16+
17+
```bash
18+
uv run main.py
19+
```
1620

1721
4. Run the test client
18-
```bash
19-
uv run test_client.py
20-
```
22+
23+
```bash
24+
uv run test_client.py
25+
```

0 commit comments

Comments
 (0)