File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
hypothesis-python/src/hypothesis Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 5353 -e, --except OBJ_NAME dotted name of exception(s) to ignore
5454 -h, --help Show this message and exit.
5555
56+ .. tip::
57+
58+ Using a light theme? Hypothesis respects `NO_COLOR <https://no-color.org/>`__
59+ and :envvar:`DJANGO_COLORS=light <django:DJANGO_COLORS>`.
60+
5661.. note::
5762
5863 The ghostwriter requires :pypi:`black`, but the generated code only
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ def guess_background_color():
2323 See also https://stackoverflow.com/questions/2507337/ and
2424 https://unix.stackexchange.com/questions/245378/
2525 """
26+ django_colors = os .getenv ("DJANGO_COLORS" )
27+ if django_colors in ("light" , "dark" ):
28+ return django_colors
2629 # Guessing based on the $COLORFGBG environment variable
2730 try :
2831 fg , * _ , bg = os .getenv ("COLORFGBG" ).split (";" )
You can’t perform that action at this time.
0 commit comments