forked from ray-project/ray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Add ratchet for doctests (ray-project#37584)
code-block:: python isn't tested, so we want to use testcode going forward. This PR adds a ratchet to ensure that libraries with tested code snippets continue to get tested. --------- Signed-off-by: Balaji Veeramani <[email protected]>
- Loading branch information
1 parent
665cfa8
commit 016a21e
Showing
6 changed files
with
24 additions
and
2 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
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 |
---|---|---|
|
@@ -6,3 +6,4 @@ mypy==0.982 | |
types-PyYAML==6.0.12.2 | ||
black==22.10.0 | ||
isort==5.10.1 | ||
semgrep==1.32.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 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,13 @@ | ||
rules: | ||
- id: code-block-python | ||
paths: | ||
include: | ||
- "python/ray/data/**/*.py" | ||
- "doc/source/data/**/*.rst" | ||
languages: | ||
- generic | ||
message: > | ||
Don't use 'code-block:: python', it's not tested! Use 'testcode' instead! For more | ||
information, see https://docs.ray.io/en/master/ray-contribute/writing-code-snippets.html. | ||
pattern: "code-block:: python" | ||
severity: ERROR |