Skip to content

Commit

Permalink
Limit "single source file per target" presubmit to check only python …
Browse files Browse the repository at this point in the history
…targets.

Add path exclusions for certain directories.

PiperOrigin-RevId: 586378455
  • Loading branch information
jam14j authored and tensorflower-gardener committed Nov 29, 2023
1 parent e19035f commit 755370c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensorflow/build_cleaner_spec.textproto
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# proto-file: devtools/build_cleaner/proto/actions.proto
# proto-message: ActionSpecs

# Rules (except for the allowlist) should not have more than one source file.
# Python rules should not have more than one source file.
action_spec {
action: CHECK_FILE_COUNT
file_count_params {
rule_selector {
rule_kind_regex: "^(?!filegroup|genrule|_policy_filegroup).*$"
rule_kind_regex: "^.*py(type)?(_strict)?_(binary|library|test).*$"
generator_function_regex: "^(?!boq_header)$"
}
max_source_count: 1
Expand Down

0 comments on commit 755370c

Please sign in to comment.