Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ repos:
- id: clippy
name: clippy (workspace strict)
description: Strict clippy on entire workspace - deny all warnings
entry: cargo clippy --workspace --all-features --all-targets -- -D warnings
entry: python3 contrib/run_clippy.py
language: system
types: [rust]
pass_filenames: false
Expand Down
20 changes: 20 additions & 0 deletions contrib/run_clippy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env python3
"""Run clippy."""

import subprocess
import sys

cmd = [
"cargo", "clippy",
"--workspace",
"--all-features",
"--all-targets",
]

# Exclude dash-fuzz on Windows (honggfuzz doesn't support Windows)
if sys.platform == "win32":
cmd.extend(["--exclude", "dash-fuzz"])

cmd.extend(["--", "-D", "warnings"])

sys.exit(subprocess.call(cmd))