mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-01-22 10:04:34 +01:00
.pre-commit-config.yaml: uncomment prettier additional_dependencies, remove nginx excluding
This commit is contained in:
parent
a7c5896e28
commit
05bb6f7ad4
@ -25,7 +25,6 @@ repos:
|
|||||||
- id: destroyed-symlinks
|
- id: destroyed-symlinks
|
||||||
- id: detect-private-key
|
- id: detect-private-key
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
exclude: .*\.nginx$
|
|
||||||
- id: fix-byte-order-marker
|
- id: fix-byte-order-marker
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
# Markdown allows double trailing space for forced line change. The
|
# Markdown allows double trailing space for forced line change. The
|
||||||
@ -118,17 +117,15 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: prettier
|
||||||
# These are handled by Black below
|
# These are handled by Black below
|
||||||
exclude_types:
|
exclude_types: [python, pyi, jupyter]
|
||||||
[python, pyi, jupyter]
|
additional_dependencies: [
|
||||||
#additional_dependencies:
|
|
||||||
#[
|
|
||||||
# https://www.npmjs.com/package/prettier
|
# https://www.npmjs.com/package/prettier
|
||||||
#"prettier@3.0.1",
|
"prettier@3.0.3",
|
||||||
# https://www.npmjs.com/package/prettier-plugin-nginx
|
# https://www.npmjs.com/package/prettier-plugin-nginx
|
||||||
#"prettier-plugin-nginx@1.0.3",
|
"prettier-plugin-nginx@1.0.3",
|
||||||
# https://www.npmjs.com/package/prettier-plugin-toml
|
# https://www.npmjs.com/package/prettier-plugin-toml
|
||||||
#"prettier-plugin-toml@1.0.0",
|
"prettier-plugin-toml@1.0.0",
|
||||||
#]
|
]
|
||||||
|
|
||||||
# Black, opinionated Python code formatter
|
# Black, opinionated Python code formatter
|
||||||
# - repo: https://github.com/psf/black
|
# - repo: https://github.com/psf/black
|
||||||
@ -153,7 +150,6 @@ repos:
|
|||||||
alias: ec
|
alias: ec
|
||||||
# I don't actually care about line lengths as more than a guideline
|
# I don't actually care about line lengths as more than a guideline
|
||||||
args: [-disable-max-line-length]
|
args: [-disable-max-line-length]
|
||||||
exclude: .*\.nginx$
|
|
||||||
|
|
||||||
# # Python linter
|
# # Python linter
|
||||||
# - repo: local
|
# - repo: local
|
||||||
|
Loading…
Reference in New Issue
Block a user