-
-
Notifications
You must be signed in to change notification settings - Fork 606
/
config.yaml
32 lines (29 loc) · 1.12 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Note that for values that are regexes, how YAML interprets backslashes and other
# special characters matters. For example, an unquoted string is interpreted as a raw
# string with no escape characters (so it's particularly useful for expressing regexes).
# Adding quotes around these may change their meaning, so don't do so without thought.
path_patterns:
- name: python_source
pattern: (?<!__init__)\.py$
- name: rust_source
pattern: .*.rs$
- name: build_files
pattern: /BUILD(?:\..*)?$
content_patterns:
- name: python_header
pattern: |+
^(?:#\!\/usr\/bin\/env python3
)?# Copyright 20\d\d Pants project contributors \(see CONTRIBUTORS.md\)\.
# Licensed under the Apache License, Version 2.0 \(see LICENSE\)\.
- name: rust_header
pattern: |+
^// Copyright 20\d\d Pants project contributors \(see CONTRIBUTORS.md\)\.
// Licensed under the Apache License, Version 2.0 \(see LICENSE\)\.
required_matches:
python_source:
- python_header
# TODO: Make rust code conform, then uncomment this.
# rust_source:
# - rust_header
build_files:
- python_header