Skip to content

Commit

Permalink
feat: ruff ipynb integration via nbqa
Browse files Browse the repository at this point in the history
  • Loading branch information
Schischke, David committed Nov 7, 2023
1 parent b753ee1 commit 25b6814
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion {{cookiecutter.repo_name}}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ repos:
args:
- --disable=pointless-statement,duplicate-code,expression-not-assigned
- --const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__)|([a-z_][a-z0-9_]{0,50}))$
# TODO: Add nbqa-ruff
{%- elif cookiecutter.linter_name == "ruff" %}
- id: nbqa-ruff
name: nbqa-ruff
entry: nbqa ruff
language: system
files: \.ipynb
{%- endif %}
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
Expand Down

0 comments on commit 25b6814

Please sign in to comment.