[GRASS-git] [OSGeo/grass] 49fb2d: pre-commit: set min-space to 1 for in-line comment...
Nicklas Larsson
noreply at github.com
Wed Nov 22 03:13:45 PST 2023
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 49fb2d97e4f1c6c73d1ae75e49720d66b9d092ca
https://github.com/OSGeo/grass/commit/49fb2d97e4f1c6c73d1ae75e49720d66b9d092ca
Author: Nicklas Larsson <n_larsson at yahoo.com>
Date: 2023-11-22 (Wed, 22 Nov 2023)
Changed paths:
M .pre-commit-config.yaml
Log Message:
-----------
pre-commit: set min-space to 1 for in-line comments in yaml files (#3254)
Renovate bot commit may contain trailing comments with 1 space from
the content. This is caused by Renovate's use of 'prettier' for formatting, which
has a different default compared to yamllint, and that is not likely to change.
This is completely arbitrary, thus to avoid further linting issues cased by
Renovate we can as well adapt to use 1 min-space from content.
Prepare for 'pre-commit.ci' use 'Skip flake8', as the '.flake8' file is ignored
by pre-commit.ci. For some unknown reason the 'clang-format' of pre-commit.ci
also formats ipynb files (being json files), but local use of pre-commit
does not. Exclude ipynb files from clang-format.
More information about the grass-commit
mailing list