mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-08-12 11:40:44 +08:00
pre-commit hook black->black-jupyter
This commit is contained in:
@@ -26,10 +26,7 @@
|
|||||||
#
|
#
|
||||||
# /WARNING!
|
# /WARNING!
|
||||||
|
|
||||||
exclude: "build|stubs|^bot/templates/|^notebooks/.*\\.ipynb$"
|
exclude: build|stubs|^bot/templates/|^notebooks/.*\\.ipynb$
|
||||||
|
|
||||||
default_language_version:
|
|
||||||
python: python3
|
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
@@ -42,12 +39,12 @@ repos:
|
|||||||
# and which break the standard YAML check. The alternative would be to
|
# and which break the standard YAML check. The alternative would be to
|
||||||
# skip any unsafe errors (and thus break YAML compatibility) or use
|
# skip any unsafe errors (and thus break YAML compatibility) or use
|
||||||
# some other checker that may not work in general.
|
# some other checker that may not work in general.
|
||||||
exclude: "^copilot/web/addons/.*$"
|
exclude: ^copilot/web/addons/.*$
|
||||||
- id: check-json
|
- id: check-json
|
||||||
- id: check-case-conflict
|
- id: check-case-conflict
|
||||||
- id: detect-private-key
|
- id: detect-private-key
|
||||||
- id: fix-encoding-pragma
|
- id: fix-encoding-pragma
|
||||||
args: ["--remove"]
|
args: [--remove]
|
||||||
- id: forbid-submodules
|
- id: forbid-submodules
|
||||||
- id: mixed-line-ending
|
- id: mixed-line-ending
|
||||||
- id: requirements-txt-fixer
|
- id: requirements-txt-fixer
|
||||||
@@ -57,13 +54,13 @@ repos:
|
|||||||
- id: check-symlinks
|
- id: check-symlinks
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
args: ["--maxkb=1024"]
|
args: [--maxkb=1024]
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
|
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 22.12.0
|
rev: 22.12.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black-jupyter
|
||||||
|
|
||||||
- repo: https://github.com/pycqa/flake8
|
- repo: https://github.com/pycqa/flake8
|
||||||
rev: 6.0.0
|
rev: 6.0.0
|
||||||
@@ -79,7 +76,7 @@ repos:
|
|||||||
rev: v2.7.1
|
rev: v2.7.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: prettier
|
||||||
args: ["--prose-wrap=always", "--write"]
|
args: [--prose-wrap=always, --write]
|
||||||
|
|
||||||
- repo: local
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
|
|||||||
Reference in New Issue
Block a user