Skip to content

Commit

Permalink
Merge branch 'release/2.2' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
exhuma committed Apr 7, 2024
2 parents fa22cfb + e34068c commit be29002
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
10 changes: 10 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
Changelog
=========

Version 2.2
-----------

* Provide new keyword-argument ``highlighted_path`` to visually distinguish
traceback elements which are path of a subtree. It defaults to
``<current-working-directory>/src`` if it exists.

This helps reading tracebacks when using complex frameworks (like SQLAlchemy,
Flask, Starlette, ...).

Version 2.1
-----------

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "gouge"
version = "2.1"
version = "2.2"
authors = [
{name = "Michel Albert", email = "michel@albert.lu"},
]
Expand Down
1 change: 1 addition & 0 deletions src/gouge/preformatters.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import re

from gouge.colourcli import clr

P_UVICORN_ACCESS = re.compile(
Expand Down
6 changes: 4 additions & 2 deletions test/test_preformatter.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import logging
from logging import LogRecord

import pytest
import logging
from gouge.colourcli import Simple

from gouge import preformatters as pf
from gouge.colourcli import Simple


def _dummy_preformatter(message: str) -> str:
Expand Down

0 comments on commit be29002

Please sign in to comment.