Skip to content

Commit

Permalink
chore: Add prettier as pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
paveldedik committed Mar 13, 2024
1 parent fe2dd13 commit dcd3eaa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down Expand Up @@ -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

Expand All @@ -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.

0 comments on commit dcd3eaa

Please sign in to comment.