| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- repos:
- - repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v3.2.0
- hooks:
- - id: trailing-whitespace
- - id: end-of-file-fixer
- - id: check-added-large-files
- # Hook to format many type of files in the repo
- # including solidity contracts.
- - repo: https://github.com/pre-commit/mirrors-prettier
- rev: "v2.7.1"
- hooks:
- - id: prettier
- additional_dependencies:
- - "prettier@2.7.1"
- - "prettier-plugin-solidity@1.0.0-rc.1"
- - repo: local
- hooks:
- # Hooks for the remote executor
- - id: cargo-fmt-executor-remote-executor
- name: Cargo format executor for remote executor
- language: "rust"
- entry: cargo +nightly fmt --manifest-path ./pythnet/remote-executor/Cargo.toml --all -- --config-path rustfmt.toml
- pass_filenames: false
- files: pythnet/remote-executor/
- - id: cargo-clippy-executor
- name: Cargo clippy executor
- language: "rust"
- entry: cargo +nightly clippy --manifest-path ./pythnet/remote-executor/Cargo.toml -- -D warnings
- pass_filenames: false
- files: pythnet/remote-executor/
- # Hooks for the attester
- - id: cargo-fmt-executor-attester
- name: Cargo format executor for attester
- language: "rust"
- entry: cargo +nightly fmt --manifest-path ./solana/pyth2wormhole/Cargo.toml --all -- --config-path rustfmt.toml
- pass_filenames: false
- files: solana/pyth2wormhole/
- # Hooks for cosmwasm contract
- - id: cargo-fmt-executor-cosmwasm
- name: Cargo format executor form cosmwasm contract
- language: "rust"
- entry: cargo +nightly fmt --manifest-path ./cosmwasm/Cargo.toml --all -- --config-path rustfmt.toml
- pass_filenames: false
- files: cosmwasm/
|