.pre-commit-config.yaml: uncomment prettier additional_dependencies, remove nginx excluding

This commit is contained in:
Aminda Suomalainen 2023-10-19 09:27:12 +03:00
parent a7c5896e28
commit 05bb6f7ad4
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
1 changed files with 9 additions and 13 deletions

View File

@ -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
#[ "prettier@3.0.3",
# https://www.npmjs.com/package/prettier # https://www.npmjs.com/package/prettier-plugin-nginx
#"prettier@3.0.1", "prettier-plugin-nginx@1.0.3",
# https://www.npmjs.com/package/prettier-plugin-nginx # https://www.npmjs.com/package/prettier-plugin-toml
#"prettier-plugin-nginx@1.0.3", "prettier-plugin-toml@1.0.0",
# https://www.npmjs.com/package/prettier-plugin-toml ]
#"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