Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nbQA pre-commit hook and lint existing notebooks #1038

Closed
ns-rse opened this issue Dec 5, 2024 · 0 comments · Fixed by #1048
Closed

Add nbQA pre-commit hook and lint existing notebooks #1038

ns-rse opened this issue Dec 5, 2024 · 0 comments · Fixed by #1048
Labels
CI/CD linting notebooks Issues pertaining to Jupyter Notebooks v2.3.1

Comments

@ns-rse
Copy link
Collaborator

ns-rse commented Dec 5, 2024

Add nbQA pre-commit hook to the .pre-commit-config.yaml to lint Notebooks.

.pre-commit-config.yaml

The full set of available hooks is listed here

repos:
- repo: https://github.com/nbQA-dev/nbQA
  rev: 1.9.1
  hooks:
   - id: nbqa-black
   - id: nbqa-check-ast
   - id: nbqa-flake8
   - id: nbqa-isort
   - id: nbqa-mypy
   - id: nbqa-pylint
   - id: nbqa-pyupgrade
@ns-rse ns-rse added CI/CD linting notebooks Issues pertaining to Jupyter Notebooks v2.3.1 labels Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/CD linting notebooks Issues pertaining to Jupyter Notebooks v2.3.1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant