mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-26 11:59:10 +00:00
Add jupyter notebooks to ecosystem checks (#9293)
Implements https://github.com/astral-sh/ruff/pull/8873 via https://github.com/astral-sh/ruff/pull/9286
This commit is contained in:
parent
967b2dcaf4
commit
4b8b3a1ced
1 changed files with 18 additions and 0 deletions
|
@ -9,6 +9,8 @@ from ruff_ecosystem.projects import (
|
|||
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")),
|
||||
|
@ -93,4 +95,20 @@ DEFAULT_TARGETS = [
|
|||
repo=Repository(owner="zulip", name="zulip", ref="main"),
|
||||
check_options=CheckOptions(select="ALL"),
|
||||
),
|
||||
# Jupyter Notebooks
|
||||
Project(
|
||||
# fork of `huggingface` without syntax errors in notebooks
|
||||
repo=Repository(
|
||||
owner="zanieb",
|
||||
name="huggingface-notebooks",
|
||||
ref="zb/fix-syntax",
|
||||
),
|
||||
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"]},
|
||||
),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue