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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
licenses(["notice"]) # Apache 2.0
load("//tensorflow:tensorflow.bzl", "py_test")
filegroup(
name = "all_files",
srcs = glob(
["**/*"],
exclude = [
"**/METADATA",
"**/OWNERS",
],
),
visibility = ["//tensorflow:__subpackages__"],
)
py_library(
name = "static_analysis",
srcs = [
"activity.py",
"annos.py",
"live_values.py",
"liveness.py",
"reaching_definitions.py",
"type_info.py",
],
srcs_version = "PY2AND3",
visibility = ["//visibility:public"],
deps = [
"//tensorflow/python:util",
"//tensorflow/python/autograph/pyct",
"//tensorflow/python/autograph/utils",
"@gast_archive//:gast",
],
)
py_test(
name = "activity_test",
srcs = ["activity_test.py"],
srcs_version = "PY2AND3",
tags = ["no_windows"],
deps = [
":static_analysis",
"//tensorflow/python:client_testlib",
"//tensorflow/python/autograph/pyct",
"@gast_archive//:gast",
],
)
py_test(
name = "live_values_test",
srcs = ["live_values_test.py"],
srcs_version = "PY2AND3",
tags = ["no_windows"],
deps = [
":static_analysis",
"//tensorflow/python:client_testlib",
"//tensorflow/python/autograph/pyct",
],
)
py_test(
name = "liveness_test",
srcs = ["liveness_test.py"],
srcs_version = "PY2AND3",
deps = [
":static_analysis",
"//tensorflow/python:client_testlib",
"//tensorflow/python/autograph/pyct",
],
)
py_test(
name = "reaching_definitions_test",
srcs = ["reaching_definitions_test.py"],
srcs_version = "PY2AND3",
deps = [
":static_analysis",
"//tensorflow/python:client_testlib",
"//tensorflow/python/autograph/pyct",
],
)
py_test(
name = "type_info_test",
srcs = ["type_info_test.py"],
srcs_version = "PY2AND3",
deps = [
":static_analysis",
"//tensorflow/python:client_testlib",
"//tensorflow/python/autograph/pyct",
"//tensorflow/python/autograph/utils",
],
)
|