pyth-crosschain/.pre-commit-config.yaml

22 lines
703 B
YAML
Raw Normal View History

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
files: pythnet/
- id: end-of-file-fixer
files: pythnet/
- id: check-added-large-files
- repo: local
hooks:
- id: cargo-fmt-executor
name: Cargo format executor
language: "rust"
entry: cargo +nightly fmt --manifest-path ./pythnet/remote-executor/Cargo.toml
pass_filenames: false
- 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