Skip to content

Use Ruff formatting, run Ruff on notebooks - #256

Merged
flying-sheep merged 5 commits into
mainfrom
ruff-ipynb
Dec 18, 2023
Merged

flying-sheep merged 5 commits into
mainfrom
ruff-ipynb

Conversation

@flying-sheep

@flying-sheep flying-sheep commented Dec 12, 2023 •

Copy link
Copy Markdown
Member

Fixes #237

Enabling Ruff formatting for notebooks needs settings both in the pre-commit config and Ruff’s config:

- repo: https://github.com/astral-sh/ruff-pre-commit
  rev: v0.1.8
  hooks:
  - id: ruff
    types_or: [python, pyi, jupyter]
    args: [--fix, --exit-non-zero-on-fix]
  - id: ruff-format
    types_or: [python, pyi, jupyter]
[tool.ruff]
extend-include = ["*.ipynb"]

@github-actions

Copy link
Copy Markdown

A PR has been generated to the instance repo:
scverse/cookiecutter-scverse-instance#105

You can check out the PR to preview your changes
in an instance of the cookiecutter template. The PR will be kept in sync with
this PR automatically.

@flying-sheep flying-sheep changed the title Run Ruff on notebooks Use Ruff formatting, run Ruff on notebooks Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Switch to Ruff formatting

1 participant