forked from kubernetes/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
76 lines (68 loc) · 1.51 KB
/
BUILD.bazel
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package(default_visibility = ["//visibility:public"])
py_test(
name = "coalesce_test",
size = "small",
srcs = [
"coalesce.py",
"coalesce_test.py",
],
)
py_test(
name = "verify_boilerplate",
srcs = ["verify_boilerplate.py"],
data = ["//:all-srcs"],
tags = ["lint"],
)
sh_test(
name = "verify-pylint",
srcs = ["verify-pylint.sh"],
data = [
":pylint_bin",
"//:all-srcs",
],
tags = ["lint"],
)
sh_test(
name = "verify-spelling",
srcs = ["verify-spelling.sh"],
args = ["-m $(location //vendor/github.com/client9/misspell/cmd/misspell)"],
data = [
"//:all-srcs",
"//vendor/github.com/client9/misspell/cmd/misspell",
],
tags = ["lint"],
)
test_suite(
name = "verify-all",
tags = ["lint"],
tests = [
"verify-pylint",
"verify_boilerplate",
],
)
py_binary(
name = "pylint_bin",
srcs = ["pylint_bin.py"],
tags = ["lint"],
# NOTE: this should only contain direct third party imports and pylint
deps = [
"@influxdb",
"@pylint",
"@pytz",
"@requests", # TODO(fejta): figure out a better solution
"@ruamel_yaml//ruamel/yaml:ruamel.yaml",
"@yaml",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)