Skip to content

Commit

Permalink
Pre-commit config updates for jupyter notebooks and flake8 W503 (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
atong01 authored Sep 7, 2022
1 parent a98ead1 commit 2f3fe86
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ repos:
hooks:
- id: flake8
args:
["--ignore", "E402,E501,F401,F841,W504", "--exclude", "logs/*,data/*"]
[
"--extend-ignore",
"E203,E402,E501,F401,F841",
"--exclude",
"logs/*,data/*",
]

# python security linter
- repo: https://github.com/PyCQA/bandit
Expand Down Expand Up @@ -92,5 +97,20 @@ repos:
hooks:
- id: codespell
args:
- --skip=logs/**,data/**
- --skip=logs/**,data/**,*.ipynb
# - --ignore-words-list=abc,def

# jupyter notebook linting
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.4.0
hooks:
- id: nbqa-black
args: ["--line-length=99"]
- id: nbqa-isort
args: ["--profile=black"]
- id: nbqa-flake8
args:
[
"--extend-ignore=E203,E402,E501,F401,F841",
"--exclude=logs/*,data/*",
]

0 comments on commit 2f3fe86

Please sign in to comment.