Skip to content

Commit

Permalink
Update .pre-commit-config.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
michplunkett committed Jun 23, 2024
1 parent d4cf760 commit c30a691
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
repos:
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.8.5
hooks:
- id: nbqa-ruff
exclude: data/
args:
- --fix
- --target-version=py311
- --ignore=E721,E722
- --line-length=80
- id: nbqa-black
exclude: data/
args:
- --line-length=80
- id: nbqa-isort
exclude: data/
args:
- --float-to-top

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
Expand Down Expand Up @@ -47,15 +66,15 @@ repos:
rev: v0.4.10
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
types_or: [python,pyi]
args:
- --fix
- --target-version=py311
- --select=B,C,E,F,W
- --line-length=80
- --ignore=E203,E402,E501,E261
- id: ruff-format
types_or: [ python, pyi, jupyter ]
types_or: [python,pyi]
args:
- --target-version=py311
- --line-length=80

0 comments on commit c30a691

Please sign in to comment.