File tree Expand file tree Collapse file tree
authn-adk-all-in-one/adk_agents Expand file tree Collapse file tree Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- # Copyright 2026 Google LLC
2- #
3- # Licensed under the Apache License, Version 2.0 (the "License");
4- # you may not use this file except in compliance with the License.
5- # You may obtain a copy of the License at
6- #
7- # http://www.apache.org/licenses/LICENSE-2.0
8- #
9- # Unless required by applicable law or agreed to in writing, software
10- # distributed under the License is distributed on an "AS IS" BASIS,
11- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12- # See the License for the specific language governing permissions and
13- # limitations under the License.
14-
151repos :
162 - repo : https://github.com/pre-commit/pre-commit-hooks
173 rev : v4.6.0
4733 hooks :
4834 - id : mdformat
4935 files : ^(README\.md|CONTRIBUTING\.md|contributing/.*\.md)$
36+ exclude : (?i)SKILL\.md$
5037 additional_dependencies :
5138 - mdformat-gfm
Original file line number Diff line number Diff line change @@ -255,17 +255,7 @@ the key style points:
255255
256256### Autoformat (Required Before Committing)
257257
258- ** Always run** before committing code: ` bash ./autoformat.sh `
259-
260- ** Manual formatting** (if needed): ```bash
261-
262- # Format imports
263-
264- isort src/ tests/ contributing/
265-
266- # Format code style
267-
268- pyink --config pyproject.toml src/ tests/ contributing/ ```
258+ ** Always run** before committing code: ` pre-commit run --all-files `
269259
270260** Check formatting** without making changes: `bash pyink --check --diff --config
271261pyproject.toml src/ isort --check src/`
@@ -512,7 +502,9 @@ Quick reference to important project files:
512502- **Main config:** `pyproject.toml` (uses `flit_core` build backend)
513503- **Dependencies:** `uv.lock` (managed by `uv`)
514504- **Linting:** `pylintrc` (Google Python Style Guide)
515- - **Auto-format:** `autoformat.sh` (runs isort + pyink)
505+ - **Auto-format:** `pre-commit` (runs isort + pyink)
506+ - **Run on all files:** `pre-commit run --all-files`
507+ - **Install as hook:** `pre-commit install`
516508- **CLI entry point:** `src/google/adk/cli/cli_tools_click.py`
517509- **Web UI backend:** `src/google/adk/cli/adk_web_server.py`
518510- **Main exports:** `src/google/adk/__init__.py` (exports Agent, Runner)
Original file line number Diff line number Diff line change @@ -202,11 +202,18 @@ part before or alongside your code PR.
202202
2032031 . ** Auto-format the code:**
204204
205- ** NOTE** : We use ` isort ` and ` pyink ` for styles. Use the included
206- autoformat.sh to auto-format.
205+ We use ` pre-commit ` to manage code style and formatting (including ` isort ` and ` pyink ` ).
206+
207+ To run it manually on all files:
208+
209+ ``` shell
210+ pre-commit run --all-files
211+ ```
212+
213+ You can also install it as a git hook to run automatically on every commit:
207214
208215 ``` shell
209- ./autoformat.sh
216+ pre-commit install
210217 ```
211218
2122191 . ** Build the wheel file:**
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11google-adk [a2a ]== 1.28.1
2-
Original file line number Diff line number Diff line change 11google-adk == 1.28.1
2-
You can’t perform that action at this time.
0 commit comments