Skip to content
Merged
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
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
- id: ruff
files: '^python/.*'
args: ["--fix", "--line-length", "120"]
stages: [commit, push, manual]
stages: [pre-commit, pre-push, manual]
exclude: |
(?x)(
^python/triton/runtime/.*|
Expand All @@ -35,14 +35,14 @@ repos:
hooks:
- id: yapf
args: ["-p", "-i"]
stages: [commit, push, manual]
stages: [pre-commit, pre-push, manual]
exclude: "python/test/unit/language/test_line_info.py"

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v16.0.6
hooks:
- id: clang-format
stages: [commit, push, manual]
stages: [pre-commit, pre-push, manual]

# Expand YAML anchors in files used by github workflows, because github can't
# do this itself. This lets us use anchors, which avoids code duplication.
Expand All @@ -69,15 +69,15 @@ repos:
- id: bandit
files: '^(benchmarks|scripts|third_party/intel)/.*\.py$'
args: ["-c", "bandit.yaml", "-s", "B404,B603,B607"]
stages: [commit, push, manual]
stages: [pre-commit, pre-push, manual]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.3
hooks:
- id: ruff
files: '^(benchmarks|third_party/intel|scripts)/.*'
args: ["--fix", "--line-length", "120"]
stages: [commit, push, manual]
stages: [pre-commit, pre-push, manual]

- repo: https://github.com/pycqa/pylint
rev: v3.2.6
Expand Down Expand Up @@ -105,7 +105,7 @@ repos:
- --disable=too-many-locals
- --disable=too-many-statements
- --disable=too-many-arguments
stages: [commit, push, manual]
stages: [pre-commit, pre-push, manual]

- id: pylint
name: pylint for benchmarks
Expand Down Expand Up @@ -136,7 +136,7 @@ repos:
- --disable=too-many-statements
- --disable=too-many-arguments
- --disable=fixme
stages: [commit, push, manual]
stages: [pre-commit, pre-push, manual]


exclude: |
Expand Down