the usual .pre-commit-config.yaml and applying

This commit is contained in:
Aminda Suomalainen 2023-02-22 10:42:45 +02:00
parent 1c4dc6b930
commit 6eb6ed647c
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
6 changed files with 44 additions and 25 deletions

View File

@ -10,3 +10,7 @@ indent_size = tab
[*.{yaml,yml,cff}]
indent_style = space
indent_size = 2
[*.md]
indent_style = space
indent_size = 3

View File

@ -5,20 +5,31 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: destroyed-symlinks
- id: detect-private-key
- id: fix-byte-order-marker
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.21.0
hooks:
- id: check-dependabot
- id: check-github-actions
- id: check-github-workflows
- id: check-gitlab-ci
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.21.0
hooks:
- id: check-dependabot
- id: check-github-actions
- id: check-github-workflows
- id: check-gitlab-ci
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.0-alpha.4"
hooks:
- id: prettier
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: "2.7.1"
hooks:
- id: editorconfig-checker
alias: ec

View File

@ -1,13 +1,13 @@
cff-version: 1.2.0
message: "If you use this, please cite it as below."
authors:
- family-names: "Suomalainen"
given-names: "Aminda"
- family-names: "Suomalainen"
given-names: "Aminda"
title: "GitHub Community Health Files"
url: "https://github.com/Mikaela/.github"
preferred-citation:
type: generic
title: "GitHub Community Health Files"
authors:
- family-names: "Suomalainen"
given-names: "Aminda"
- family-names: "Suomalainen"
given-names: "Aminda"

View File

@ -14,9 +14,9 @@ from GitHub or `git remote`s to use, the merge might just take a bit longer
## General steps
1. In case [editorconfig](https://editorconfig.org/) isn't
[natively supported by your editor of choice](https://editorconfig.org/#pre-installed),
please consider [installing a plugin](https://editorconfig.org/#download).
E.g. VS Cod{e,ium} users can `CTRL-P` and execute `ext install EditorConfig.EditorConfig`.
[natively supported by your editor of choice](https://editorconfig.org/#pre-installed),
please consider [installing a plugin](https://editorconfig.org/#download).
E.g. VS Cod{e,ium} users can `CTRL-P` and execute `ext install EditorConfig.EditorConfig`.
2. If the repository in question has a `.pre-commit-config.yaml` file,
please install [`pre-commit`](https://pre-commit.com/) and run
`pre-commit install` in your local clone at least once.
please install [`pre-commit`](https://pre-commit.com/) and run
`pre-commit install` in your local clone at least once.

View File

@ -1,2 +1,6 @@
# If no protocol is specified, http:// is assumed.
custom: ["https://github.com/liberapay/liberapay.org/issues/30", "https://cv.aminda.eu"]
custom:
[
"https://github.com/liberapay/liberapay.org/issues/30",
"https://cv.aminda.eu",
]

View File

@ -1,3 +1,3 @@
GitHub community health files
* https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file#creating-a-repository-for-default-files
- https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file#creating-a-repository-for-default-files