Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace exclusion with inclusion patterns #2723

Merged
merged 1 commit into from
Mar 27, 2024
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
43 changes: 19 additions & 24 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,34 @@ default_stages: [commit]
default_language_version:
python: python3

files: |
kaidokert marked this conversation as resolved.
Show resolved Hide resolved
(?x)^(
(
.github|
cobalt|
docker|
glimp|
internal|
precommit_hooks|
starboard|
tools/lz4_compress|
tools/metrics/actions/cobalt|
tools/metrics/histograms/metadata/cobalt|
tools/raspi_image|
tools/testing|
tools/windows
)/
| ^[^/]+$ # files in the root
kaidokert marked this conversation as resolved.
Show resolved Hide resolved
)
exclude: |
(?x)^(
(
base|
build|
buildtools|
cobalt/updater|
components/crash/core/common|
components/metrics_services_manager|
components/metrics|
components/prefs|
components/ukm|
components/variations|
components/version_info|
crypto|
extensions/buildflags|
glimp/include|
net|
internal/kokoro/third-party|
internal/starboard/shared/playstation/glimp/shaders|
testing|
third_party|
tools/gyp|
tools/python|
ui|
url
)/
|
components/update_client/((?!cobalt).)*$
|
# Ignore everything under tools/metrics _except_ Cobalt files. We
# need those validated to keep the telemetry/metrics pipeline working.
tools/metrics/((?!cobalt\/).)*$|
.*_pb2\.py$ |
.*\.pb\.cc$ |
.*\.pb\.h$ |
Expand Down
Loading