1+ # *******************************************************************************
2+ # Copyright (c) 2026 Contributors to the Eclipse Foundation
3+ #
4+ # See the NOTICE file(s) distributed with this work for additional
5+ # information regarding copyright ownership.
6+ #
7+ # This program and the accompanying materials are made available under the
8+ # terms of the Apache License Version 2.0 which is available at
9+ # https://www.apache.org/licenses/LICENSE-2.0
10+ #
11+ # SPDX-License-Identifier: Apache-2.0
12+ # *******************************************************************************
113repos :
214 - repo : https://github.com/pre-commit/pre-commit-hooks
315 rev : v6.0.0
@@ -15,11 +27,33 @@ repos:
1527 - id : check-added-large-files
1628 args : ["--maxkb=150"]
1729
18- # use LOCAL hooks for python tooling so versions come from the virtualenv
30+ - repo : https://github.com/rhysd/actionlint
31+ rev : v1.7.11
32+ hooks :
33+ - id : actionlint
34+ args :
35+ # Disable shellcheck and pyflakes for now, to enforce consistent behavior.
36+ - -shellcheck=
37+ - -pyflakes=
38+
39+ - repo : https://github.com/astral-sh/ruff-pre-commit
40+ rev : v0.15.9
41+ hooks :
42+ - id : ruff-check
43+ args : [ --fix ]
44+ - id : ruff-format
45+
46+ # Note: this is super slow, therefore it is last
1947 - repo : local
2048 hooks :
21- - id : Linter Scripts
22- name : Run linter script
23- entry : ./scripts/run-linters.sh
24- language : unsupported_script
49+ - id : BasedPyright
50+ name : BasedPyright
51+ entry : bash -c 'bazel run //:ide_support && .venv_docs/bin/python3 -m basedpyright'
52+ language : system
2553 pass_filenames : false
54+
55+ # Ensure every file has a copyright header as per the Eclipse Foundation's requirements
56+ - repo : https://github.com/eclipse-score/tooling
57+ rev : 31ff8eee214e4e97ef8f5cb46e443273515b63ec
58+ hooks :
59+ - id : copyright
0 commit comments