-
Notifications
You must be signed in to change notification settings - Fork 437
chore: bring back removed files #700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| --- | ||
| repos: | ||
| # =============================================== | ||
| # Pre-commit standard hooks (general file cleanup) | ||
| # =============================================== | ||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v5.0.0 | ||
| hooks: | ||
| - id: trailing-whitespace # Removes extra whitespace at the end of lines | ||
| - id: end-of-file-fixer # Ensures files end with a newline | ||
| - id: check-yaml # Checks YAML file syntax (before formatting) | ||
| - id: check-toml # Checks TOML file syntax (before formatting) | ||
| - id: check-added-large-files # Prevents committing large files | ||
| args: [--maxkb=500] # Example: Limit to 500KB | ||
| - id: check-merge-conflict # Checks for merge conflict strings | ||
| - id: detect-private-key # Detects accidental private key commits | ||
|
|
||
| # Formatter and linter for TOML files | ||
| - repo: https://github.com/ComPWA/taplo-pre-commit | ||
| rev: v0.9.3 | ||
| hooks: | ||
| - id: taplo-format | ||
| - id: taplo-lint | ||
|
|
||
| # YAML files | ||
| - repo: https://github.com/lyz-code/yamlfix | ||
| rev: 1.17.0 | ||
| hooks: | ||
| - id: yamlfix | ||
|
|
||
| # =============================================== | ||
| # Python Hooks | ||
| # =============================================== | ||
| # no_implicit_optional for ensuring explicit Optional types | ||
| - repo: https://github.com/hauntsaninja/no_implicit_optional | ||
| rev: '1.4' | ||
| hooks: | ||
| - id: no_implicit_optional | ||
| args: [--use-union-or] | ||
|
|
||
| # Pyupgrade for upgrading Python syntax to newer versions | ||
| - repo: https://github.com/asottile/pyupgrade | ||
| rev: v3.20.0 | ||
| hooks: | ||
| - id: pyupgrade | ||
| args: [--py310-plus] # Target Python 3.10+ syntax, matching project's target | ||
|
|
||
| # Autoflake for removing unused imports and variables | ||
| - repo: https://github.com/pycqa/autoflake | ||
| rev: v2.3.1 | ||
| hooks: | ||
| - id: autoflake | ||
| args: [--in-place, --remove-all-unused-imports] | ||
|
|
||
| # Ruff for linting and formatting | ||
| - repo: https://github.com/astral-sh/ruff-pre-commit | ||
| rev: v0.12.0 | ||
|
ishymko marked this conversation as resolved.
|
||
| hooks: | ||
| - id: ruff | ||
| args: [--fix, --exit-zero] # Apply fixes, and exit with 0 even if files were modified | ||
| exclude: ^src/a2a/grpc/ | ||
| - id: ruff-format | ||
| exclude: ^src/a2a/grpc/ | ||
|
|
||
| # Keep uv.lock in sync | ||
| - repo: https://github.com/astral-sh/uv-pre-commit | ||
| rev: 0.7.13 | ||
|
ishymko marked this conversation as resolved.
|
||
| hooks: | ||
| - id: uv-lock | ||
|
|
||
| # Commitzen for conventional commit messages | ||
| - repo: https://github.com/commitizen-tools/commitizen | ||
| rev: v4.8.3 | ||
|
ishymko marked this conversation as resolved.
|
||
| hooks: | ||
| - id: commitizen | ||
| stages: [commit-msg] | ||
|
|
||
| # Gitleaks | ||
| - repo: https://github.com/gitleaks/gitleaks | ||
| rev: v8.27.2 | ||
|
ishymko marked this conversation as resolved.
|
||
| hooks: | ||
| - id: gitleaks | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.