-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
54 lines (50 loc) · 967 Bytes
/
BUILD
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
load("@bazel_lint//bazel:buildifier.bzl", "buildifier")
load("@bazel_lint//cpp:clang.bzl", "clang_format")
load("@bazel_lint//python:pylint.bzl", "pylint")
load("@bazel_lint//python:yapf.bzl", "yapf")
buildifier(
name = "format_bazel",
srcs = ["WORKSPACE"],
glob = [
"**/*BUILD",
"**/*.bzl",
],
glob_exclude = [
"bazel-*/**",
],
)
clang_format(
name = "format_cc",
glob = [
"**/*.c",
"**/*.cc",
"**/*.h",
],
glob_exclude = [
"bazel-*/**",
"third_party/**",
],
style_file = ".clang-format",
)
yapf(
name = "format_python",
glob = [
"**/*.py",
],
glob_exclude = [
"bazel-*/**",
"third_party/**",
],
style_file = ".style.yapf",
)
pylint(
name = "lint_python",
glob = [
"**/*.py",
],
glob_exclude = [
"bazel-*/**",
"third_party/**",
],
rcfile = "pylintrc",
)