.pre-commit-config.yaml 703 B

123456789101112131415161718192021
  1. repos:
  2. - repo: https://github.com/pre-commit/pre-commit-hooks
  3. rev: v3.2.0
  4. hooks:
  5. - id: trailing-whitespace
  6. files: pythnet/
  7. - id: end-of-file-fixer
  8. files: pythnet/
  9. - id: check-added-large-files
  10. - repo: local
  11. hooks:
  12. - id: cargo-fmt-executor
  13. name: Cargo format executor
  14. language: "rust"
  15. entry: cargo +nightly fmt --manifest-path ./pythnet/remote-executor/Cargo.toml
  16. pass_filenames: false
  17. - id: cargo-clippy-executor
  18. name: Cargo clippy executor
  19. language: "rust"
  20. entry: cargo +nightly clippy --manifest-path ./pythnet/remote-executor/Cargo.toml -- -D warnings
  21. pass_filenames: false