File tree Expand file tree Collapse file tree 4 files changed +26
-14
lines changed Expand file tree Collapse file tree 4 files changed +26
-14
lines changed Original file line number Diff line number Diff line change 1
- load ("@buildifier_prebuilt//:rules.bzl" , "buildifier" )
1
+ # load("@buildifier_prebuilt//:rules.bzl", "buildifier")
2
2
3
3
package (default_visibility = ["//visibility:private" ])
4
4
5
- buildifier (
6
- name = "buildifier.check" ,
7
- lint_mode = "warn" ,
8
- mode = "diff" ,
9
- )
5
+ # buildifier(
6
+ # name = "buildifier.check",
7
+ # lint_mode = "warn",
8
+ # mode = "diff",
9
+ # )
10
10
11
- buildifier (
12
- name = "buildifier" ,
13
- lint_mode = "fix" ,
14
- mode = "fix" ,
15
- )
11
+ # buildifier(
12
+ # name = "buildifier",
13
+ # lint_mode = "fix",
14
+ # mode = "fix",
15
+ # )
16
16
17
17
licenses (["notice" ]) # MIT
18
18
Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ mypy_integration_deps("//:current_mypy_version.txt")
14
14
15
15
http_archive (
16
16
name = "buildifier_prebuilt" ,
17
- sha256 = "0450069a99db3d414eff738dd8ad4c0969928af13dc8614adbd1c603a835caad " ,
18
- strip_prefix = "buildifier-prebuilt-0.4 .0" ,
17
+ sha256 = "b3fd85ae7e45c2f36bce52cfdbdb6c20261761ea5928d1686edc8873b0d0dad0 " ,
18
+ strip_prefix = "buildifier-prebuilt-5.1 .0" ,
19
19
urls = [
20
- "http ://github.com/keith/buildifier-prebuilt/archive/0.4 .0.tar.gz" ,
20
+ "https ://github.com/keith/buildifier-prebuilt/archive/5.1 .0.tar.gz" ,
21
21
],
22
22
)
23
23
Original file line number Diff line number Diff line change @@ -8,5 +8,7 @@ py_binary(
8
8
visibility = ["//visibility:public" ],
9
9
deps = [
10
10
requirement ("mypy" ),
11
+ requirement ("boto3-stubs" ),
12
+ requirement ("botocore-stubs" ),
11
13
],
12
14
)
Original file line number Diff line number Diff line change 1
1
2
2
3
3
import sys
4
+ import mypy .modulefinder
4
5
from mypy .main import main
5
6
6
7
if __name__ == '__main__' :
8
+ additional_package_paths = [p for p in sys .path if 'pypi__' in p ]
9
+ original_get_site_packages_dirs = mypy .modulefinder .get_site_packages_dirs
10
+
11
+ def get_site_packages_dirs (* args , ** kwargs ):
12
+ egg_dirs , site_packages = original_get_site_packages_dirs (* args , ** kwargs )
13
+ site_packages += tuple (additional_package_paths )
14
+ return egg_dirs , site_packages
15
+
16
+ mypy .modulefinder .get_site_packages_dirs = get_site_packages_dirs
7
17
main (None , sys .stdout , sys .stderr )
You can’t perform that action at this time.
0 commit comments