Skip to content

Commit

Permalink
Add linters for Jupyter notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarbier committed Oct 18, 2021
1 parent a539bad commit 26a692a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,14 @@ repos:
hooks:
- id: isort
name: isort (python)
args: ["--profile", "black"]

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.1.1
hooks:
- id: nbqa-black
- id: nbqa-isort
- id: nbqa
entry: nbqa pycln
name: nbqa-pycln
alias: nbqa-pycln
additional_dependencies: [pycln]
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ testpaths = [
"tests",
]

[tool.isort]
profile = "black"

[tool.pycln]
all = true

[build-system]
requires = ["poetry-core>=1.0.0", "setuptools>=49.2.1", "poetry-dynamic-versioning>=0.13.0"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 26a692a

Please sign in to comment.