mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-07 18:14:05 +00:00
Add hooks for notebooks
This commit is contained in:
@@ -53,10 +53,25 @@ repos:
|
|||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.1.0
|
rev: v4.1.0
|
||||||
hooks:
|
hooks:
|
||||||
|
- id: check-executables-have-shebangs
|
||||||
|
- id: check-shebang-scripts-are-executable
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
|
|
||||||
|
- repo: https://github.com/kynan/nbstripout
|
||||||
|
rev: 0.5.0
|
||||||
|
hooks:
|
||||||
|
- id: nbstripout
|
||||||
|
|
||||||
|
- repo: https://github.com/nbQA-dev/nbQA
|
||||||
|
rev: 1.3.1
|
||||||
|
hooks:
|
||||||
|
- id: nbqa-black
|
||||||
|
- id: nbqa-flake8
|
||||||
|
- id: nbqa-pyupgrade
|
||||||
|
args: [--py39-plus]
|
||||||
|
|
||||||
# Lint: Dockerfile
|
# Lint: Dockerfile
|
||||||
- repo: https://github.com/hadolint/hadolint.git
|
- repo: https://github.com/hadolint/hadolint.git
|
||||||
rev: v2.8.0
|
rev: v2.8.0
|
||||||
|
Reference in New Issue
Block a user