Skip to content

Commit

Permalink
Add jupyter notebooks to ecosystem checks
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Dec 28, 2023
1 parent 57b6a8c commit b0ec884
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions python/ruff-ecosystem/ruff_ecosystem/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
Repository,
)

JUPYTER_NOTEBOOK_SELECT = "A,E703,F704,B015,B018,D100"

# TODO(zanieb): Consider exporting this as JSON and loading from there instead
DEFAULT_TARGETS = [
Project(repo=Repository(owner="DisnakeDev", name="disnake", ref="master")),
Expand Down Expand Up @@ -93,4 +95,15 @@
repo=Repository(owner="zulip", name="zulip", ref="main"),
check_options=CheckOptions(select="ALL"),
),
# Jupyter Notebooks
Project(
repo=Repository(owner="huggingface", name="notebooks", ref="main"),
check_options=CheckOptions(select=JUPYTER_NOTEBOOK_SELECT),
config_overrides={"include": ["*.ipynb"]},
),
Project(
repo=Repository(owner="openai", name="openai-cookbook", ref="main"),
check_options=CheckOptions(select=JUPYTER_NOTEBOOK_SELECT),
config_overrides={"include": ["*.ipynb"]},
),
]

0 comments on commit b0ec884

Please sign in to comment.