diff --git a/.gitattributes b/.gitattributes index 8d35de0..50023d5 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -* text=auto eol=lf linguist-detectable +* text=auto eol=lf linguist-detectable diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 071c295..35b278f 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,5 @@ +# @format + version: 2 updates: - package-ecosystem: "github-actions" diff --git a/.github/workflows/cff-validator.yml b/.github/workflows/cff-validator.yml index 565a09a..1a47358 100644 --- a/.github/workflows/cff-validator.yml +++ b/.github/workflows/cff-validator.yml @@ -1,3 +1,5 @@ +# @format + on: push: paths: diff --git a/.gitignore b/.gitignore index 39750f0..e62bd9e 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,8 @@ !.github !.gitignore !.pre-commit-config.yaml +!.prettierrc # Other ignores node_modules +pnpm-lock.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fdca171..b7b0c9e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,8 +1,11 @@ +# @format + # See https://pre-commit.com for more information # See https://pre-commit.ci for more information ci: # https://github.com/pre-commit-ci/issues/issues/83 autoupdate_schedule: quarterly + skip: [prettier] default_language_version: python: pypy3 @@ -34,10 +37,12 @@ repos: - id: check-dependabot - id: check-github-workflows - - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v4.0.0-alpha.8" + - repo: local hooks: - id: prettier + name: prettier + entry: pnpm exec prettier --cache --ignore-unknown --write + language: system - repo: https://github.com/editorconfig-checker/editorconfig-checker.python rev: "2.7.3" diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..7a8c0bc --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +{ + "insertPragma": true, + "proseWrap": "always", + "singleAttributePerLine": true, + "plugins": ["prettier-plugin-sh"], + "overrides": [{ "files": ".prettierrc", "options": { "parser": "json" } }] +} diff --git a/CITATION.cff b/CITATION.cff index d09870f..d29daf1 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -1,3 +1,5 @@ +# @format + cff-version: 1.2.0 message: "If you use this, please cite it as below." authors: diff --git a/CODEOWNERS b/CODEOWNERS index d9d0c42..168aafc 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,4 +1,4 @@ # PRs touching any file will require my review # https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#example-of-a-codeowners-file # NOTE: This will not affect other repositories even being in .github :( -* @Mikaela +* @Mikaela diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 129f7ae..0208c9a 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1 +1,3 @@ + + Please refer to [aminda.eu/discuss#rules](https://aminda.eu/discuss.html#rules). diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0f50728..26aa0fc 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,14 +1,16 @@ + + # Contributing -Contributions are welcomed assuming my repositories are the correct place -for it (the target is my repository or a PR I have open to another repository). +Contributions are welcomed assuming my repositories are the correct place for it +(the target is my repository or a PR I have open to another repository). Issues being assigned to me doesn't matter, I use that just as a tool for rediscovering them easily, http://github.com/issues?q=is:open%20assignee:Mikaela I also accept PRs to repositories that are mirrors (if that is easier for you -than opening at the original location) as patches are easy enough to export -from GitHub or `git remote`s to use, the merge might just take a bit longer +than opening at the original location) as patches are easy enough to export from +GitHub or `git remote`s to use, the merge might just take a bit longer (including the time the mirror takes to update). ## General steps @@ -16,9 +18,10 @@ from GitHub or `git remote`s to use, the merge might just take a bit longer 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`. -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. + 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. - [![Packaging status of pre-commit](https://repology.org/badge/vertical-allrepos/python:pre-commit.svg)](https://repology.org/project/python:pre-commit/versions) diff --git a/FUNDING.yml b/FUNDING.yml index 3c1ad33..7b6c81e 100644 --- a/FUNDING.yml +++ b/FUNDING.yml @@ -1,3 +1,5 @@ +# @format + # https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository # NOTE: If no protocol is specified, http:// is assumed. custom: ["https://liberapay.com/Mikaela", "https://revolut.me/aminda"] diff --git a/README.md b/README.md index 091a2a9..550e894 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ + + 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 diff --git a/SECURITY.md b/SECURITY.md index 0c117aa..23b8e54 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -1 +1,3 @@ + + Please see https://www.aminda.eu/.well-known/security.txt diff --git a/SUPPORT.md b/SUPPORT.md index 0b56fb8..5375cbe 100644 --- a/SUPPORT.md +++ b/SUPPORT.md @@ -1 +1,3 @@ + + Please see https://www.aminda.eu/discuss.html diff --git a/package.json b/package.json new file mode 100644 index 0000000..d486810 --- /dev/null +++ b/package.json @@ -0,0 +1,6 @@ +{ + "devDependencies": { + "prettier": "3.3.2", + "prettier-plugin-sh": "0.14.0" + } +}