From dcd3eaa1221e464f540b55f42aa7433f2e7b219d Mon Sep 17 00:00:00 2001 From: Pavel Dedik Date: Wed, 13 Mar 2024 08:41:19 +0100 Subject: [PATCH] chore: Add prettier as pre-commit hook --- .pre-commit-config.yaml | 7 +++++++ README.md | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9b7c6bb..549776e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,3 +21,10 @@ repos: rev: v1.9.0 hooks: - id: mypy + + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v3.1.0 + hooks: + - id: prettier + name: prettier (*.md) + files: .*\.md diff --git a/README.md b/README.md index 1e70859..06bfe46 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ to enable this behavior, just pass `exc_info=True`. When you want to use structlog's built-in [`format_exc_info`](http://www.structlog.org/en/stable/api.html#structlog.processors.format_exc_info) -processor, make that the `SentryProcessor` comes *before* `format_exc_info`! +processor, make that the `SentryProcessor` comes _before_ `format_exc_info`! Otherwise, the `SentryProcessor` won't have an `exc_info` to work with, because it's removed from the event by `format_exc_info`. @@ -182,7 +182,7 @@ INTEGRATIONS = [ sentry_sdk.init(integrations=INTEGRATIONS) ``` -This integration tells `sentry_sdk` to *ignore* standard logging and captures the events manually. +This integration tells `sentry_sdk` to _ignore_ standard logging and captures the events manually. ## Testing @@ -194,4 +194,4 @@ tox ## Contributing -Create a merge request and tag @kiwicom/platform for review. +Create a merge request and tag @kiwicom/platform for review.