scverse / cookiecutter-scverse

Cookiecutter template for scverse
https://cookiecutter-scverse-instance.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
71 stars 9 forks source link

Use Ruff formatting, run Ruff on notebooks #256

Closed flying-sheep closed 11 months ago

flying-sheep commented 11 months ago

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[bot] commented 11 months ago

A PR has been generated to the instance repo: https://github.com/scverse/cookiecutter-scverse-instance/pull/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.