File tree Expand file tree Collapse file tree 4 files changed +58
-1
lines changed
Expand file tree Collapse file tree 4 files changed +58
-1
lines changed Original file line number Diff line number Diff line change 1+ "rules_mypy"
2+
3+ module (
4+ name = "rules_mypy" ,
5+ version = "0.21.0" ,
6+ )
7+
8+ bazel_dep (name = "bazel_skylib" , version = "1.4.1" )
9+ bazel_dep (name = "buildifier_prebuilt" , version = "7.3.1" )
10+ bazel_dep (name = "platforms" , version = "0.0.8" )
11+ bazel_dep (name = "rules_python" , version = "0.34.0" )
12+ bazel_dep (name = "rules_uv" , version = "0.21.0" )
13+
14+ # configuration
15+ PYTHON_VERSION = "3.12"
16+
17+ PYTHON_VERSION_SNAKE = PYTHON_VERSION .replace ("." , "_" )
18+
19+ python = use_extension ("@rules_python//python/extensions:python.bzl" , "python" )
20+ python .toolchain (
21+ is_default = True ,
22+ python_version = PYTHON_VERSION ,
23+ )
24+ use_repo (python , "python_" + PYTHON_VERSION_SNAKE , "python_versions" )
25+
26+ pip = use_extension ("@rules_python//python/extensions:pip.bzl" , "pip" )
27+ pip .parse (
28+ enable_implicit_namespace_pkgs = True ,
29+ experimental_index_url = "https://pypi.org/simple" , # use Bazel downloader
30+ hub_name = "rules_mypy_pip" ,
31+ python_version = PYTHON_VERSION ,
32+ requirements_by_platform = {
33+ "//mypy/private:requirements.txt" : "*" ,
34+ },
35+ )
36+ use_repo (pip , "rules_mypy_pip" )
Original file line number Diff line number Diff line change 1+ matrix :
2+ platform :
3+ - debian10
4+ - ubuntu2004
5+ - macos
6+ - macos_arm64
7+ bazel :
8+ - 7.x
9+ tasks :
10+ verify_targets :
11+ name : Verify build targets
12+ platform : ${{ platform }}
13+ bazel : ${{ bazel }}
14+ build_targets :
15+ - " @rules_mypy//..."
Original file line number Diff line number Diff line change 1+ {
2+ "integrity" : " sha256-hsASd41VZLoOQPWPLSbn7c5GPsOtx4+YKiENfS8UZ8E=" ,
3+ "strip_prefix" : " rules_mypy-0.21.0" ,
4+ "url" : " https://github.com/theoremlp/rules_mypy/releases/download/v0.21.0/rules_mypy-0.21.0.tar.gz"
5+ }
Original file line number Diff line number Diff line change 3232 " 0.17.0" ,
3333 " 0.18.0" ,
3434 " 0.19.0" ,
35- " 0.20.0"
35+ " 0.20.0" ,
36+ " 0.21.0"
3637 ],
3738 "yanked_versions" : {}
3839}
You can’t perform that action at this time.
0 commit comments