Skip to content

Commit

Permalink
Merge pull request #3483 from Rjchauhan18/fix-replace-nbqa-ruff
Browse files Browse the repository at this point in the history
Fix replace nbqa ruff to ruff
  • Loading branch information
Saransh-cpp authored Oct 31, 2023
2 parents c179026 + f91fed9 commit d37a8f2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,8 @@ repos:
rev: "v0.1.3"
hooks:
- id: ruff
args: [--fix, --ignore=E741, --exclude=__init__.py]

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.0
hooks:
- id: nbqa-ruff
additional_dependencies: [ruff==0.0.284]
args: ["--fix","--ignore=E501,E402"]
args: [--fix, --show-fixes]
types_or: [python, pyi, jupyter]

- repo: https://github.com/adamchainz/blacken-docs
rev: "1.16.0"
Expand Down
8 changes: 8 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
extend-include = ["*.ipynb"]
extend-exclude = ["__init__.py"]

[lint]
ignore = ["E741"]

[lint.per-file-ignores]
"**.ipynb" = ["E402", "E703"]

0 comments on commit d37a8f2

Please sign in to comment.