mirror of
https://github.com/jupyter/notebook.git
synced 2024-11-21 01:11:21 +08:00
840b4256da
* add spelling and docstring enforcement * remove markdown format * restore local hooks * add docs change * spelling
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
ci:
|
|
autoupdate_schedule: monthly
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.4.0
|
|
hooks:
|
|
- id: check-case-conflict
|
|
- id: check-ast
|
|
- id: check-docstring-first
|
|
- id: check-executables-have-shebangs
|
|
- id: check-added-large-files
|
|
- id: check-case-conflict
|
|
- id: check-merge-conflict
|
|
- id: check-json
|
|
- id: check-toml
|
|
- id: check-yaml
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
|
|
- repo: https://github.com/python-jsonschema/check-jsonschema
|
|
rev: 0.19.2
|
|
hooks:
|
|
- id: check-github-workflows
|
|
|
|
- repo: https://github.com/psf/black
|
|
rev: 22.10.0
|
|
hooks:
|
|
- id: black
|
|
|
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
|
rev: v0.0.189
|
|
hooks:
|
|
- id: ruff
|
|
args: ["--fix"]
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: prettier
|
|
name: prettier
|
|
entry: 'npm run prettier:files'
|
|
language: node
|
|
types_or: [json, ts, tsx, javascript, jsx, css]
|
|
stages: [manual]
|
|
- id: integrity
|
|
name: integrity
|
|
entry: 'npm run integrity --force'
|
|
language: node
|
|
stages: [push]
|