-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '7021b10356069cf424556f1a5683c5f270a87e5b' into releases…
…/2.24.0 fast forward
- Loading branch information
Showing
259 changed files
with
7,074 additions
and
4,317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ steps: | |
- forge | ||
|
||
- label: ":tapioca: build: jar" | ||
key: java_wheels | ||
tags: | ||
- java | ||
- oss | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.6.0 | ||
0.7.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
load("@rules_python//python:defs.bzl", "py_library", "py_test") | ||
load("@py_deps_buildkite//:requirements.bzl", ci_require = "requirement") | ||
|
||
py_binary( | ||
name = "cmd_check_api_discrepancy", | ||
srcs = ["cmd_check_api_discrepancy.py"], | ||
deps = [":doc"], | ||
) | ||
|
||
py_library( | ||
name = "doc", | ||
srcs = glob( | ||
["*.py"], | ||
exclude = [ | ||
"test_*.py", | ||
"cmd_*.py", | ||
"mock_module.py", | ||
], | ||
), | ||
visibility = ["//ci/ray_ci/doc:__subpackages__"], | ||
) | ||
|
||
py_test( | ||
name = "test_module", | ||
size = "small", | ||
srcs = ["test_module.py", "mock_module.py"], | ||
exec_compatible_with = ["//:hermetic_python"], | ||
tags = [ | ||
"ci_unit", | ||
"team:ci", | ||
], | ||
deps = [ | ||
":doc", | ||
ci_require("pytest"), | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from enum import Enum | ||
from dataclasses import dataclass | ||
|
||
|
||
class AnnotationType(Enum): | ||
PUBLIC_API = "PublicAPI" | ||
DEVELOPER_API = "DeveloperAPI" | ||
DEPRECATED = "Deprecated" | ||
UNKNOWN = "Unknown" | ||
|
||
|
||
class CodeType(Enum): | ||
CLASS = "Class" | ||
FUNCTION = "Function" | ||
|
||
|
||
@dataclass | ||
class API: | ||
name: str | ||
annotation_type: AnnotationType | ||
code_type: CodeType |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import click | ||
|
||
from ci.ray_ci.doc.module import Module | ||
|
||
|
||
@click.command() | ||
@click.argument("module", required=True, type=str) | ||
def main(module: str) -> None: | ||
""" | ||
This script checks for annotated classes and functions in a module, and finds | ||
discrepancies between the annotations and the documentation. | ||
""" | ||
module = Module(module) | ||
for api in module.get_apis(): | ||
print( | ||
f"API: {api.name}, " | ||
f"Annotation Type: {api.annotation_type}, " | ||
f"Code Type: {api.code_type}" | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
Oops, something went wrong.