diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..fd8b3c4 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,27 @@ +# .pre-commit-config.yaml +# This file contains the configuration for pre-commit hooks. +# Each hook helps maintain code quality by running automated checks before commits. +# +exclude: '(\..*\.y[a]?ml|\.github/workflows)' +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.6.0 + hooks: + - id: no-commit-to-branch + args: ['--branch', 'main'] # prevent local commits to main branch + - id: end-of-file-fixer + - id: trailing-whitespace + - id: check-yaml + - id: check-json + - id: check-toml + - id: check-ast + - id: debug-statements + - repo: https://github.com/gitleaks/gitleaks + rev: v8.18.2 + hooks: + - id: gitleaks + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v4.0.0-alpha.8 + hooks: + - id: prettier + types_or: [json, toml, yaml, markdown] diff --git a/README.md b/README.md index 4f7cc99..63cc3cd 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ the website and what format your ask for the IP address to be returned in. ### Issues and feature requests -You've found a bug in the source code, a mistake in the documentation or maybe you'd like a new feature? You can help us by [submitting an issue on GitHub](https://github.com/mauvehed/yourip/issues). Before you create an issue, make sure to search the issue archive -- your issue may have already been addressed! +You've found a bug in the source code, a mistake in the documentation or maybe you'd like a new feature? You can help us by [submitting an issue on GitHub](https://github.com/mauvehed/yourip/issues). Before you create an issue, make sure to search the issue archive -- your issue may have already been addressed! Please try to create bug reports that are: diff --git a/app/templates/index.html b/app/templates/index.html index fb01e6f..16be884 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -12,4 +12,4 @@