Rob Broadley
b6c3bf3763
Fix highlighted text not readable with some color schemes
...
Make the foreground (text) color be the usual background color,
when highlighting text. This is done by setting the foreground
color instead of the background color, then inverting (code 7)
to swap the foreground and background colors.
Previously, with some color schemes there was not enough contrast
between the text and highlight color.
Based on the assumption that there should be contrast between
terminal colors and the background, this should make the text
readable with a wider set of color schemes.
2025-01-06 18:40:26 +00:00
Anthony Sottile
04de6a2e57
drop python 3.6 support
...
python 3.6 reached end of life on 2021-12-23
2022-01-18 18:44:20 -05:00
Anthony Sottile
68510596d3
warn on old list-style configuration
2020-07-25 13:04:54 -07:00
Anthony Sottile
9fc5a9316e
support colors on windows during git better
2020-04-02 00:10:37 -07:00
Anthony Sottile
67c1beb322
Use covdefaults to handle coveragerc
2020-02-29 14:25:19 -08:00
Anthony Sottile
df40e862f4
More miscellaneous cleanup
2020-01-13 11:47:34 -08:00
Anthony Sottile
327ed924a3
Add types to pre-commit
2020-01-12 10:15:01 -08:00
Anthony Sottile
fa536a8693
mypy passes with check_untyped_defs
2020-01-12 09:27:04 -08:00
Anthony Sottile
30c1e8289f
upgrade hooks, pyupgrade pre-commit
2020-01-12 09:27:04 -08:00
Anthony Sottile
01a628d96d
Make verbose output less special
2019-12-23 15:51:58 -08:00
Anthony Sottile
120cae9d41
Disable color if TERM=dumb is detected
2019-07-27 13:46:30 -07:00
Edgar Geier
c75d8939f8
Revert "Don't use color if NO_COLOR environment variable is set"
...
This reverts commit 1bf9ff7493 .
2019-07-23 17:40:08 +02:00
Edgar Geier
df919e6ab5
Revert "Require NO_COLOR environment variable to be non-empty to disable colors"
...
This reverts commit 01d3a72a0e .
2019-07-23 17:39:34 +02:00
Edgar Geier
69b2cb5ea6
Revert "Simplify NO_COLOR check"
...
This reverts commit e9ff1be96c .
2019-07-23 17:38:29 +02:00
Edgar Geier
e9ff1be96c
Simplify NO_COLOR check
2019-07-22 20:09:32 +02:00
Edgar Geier
01d3a72a0e
Require NO_COLOR environment variable to be non-empty to disable colors
2019-07-22 19:35:39 +02:00
Edgar Geier
1bf9ff7493
Don't use color if NO_COLOR environment variable is set
2019-07-22 19:18:36 +02:00
Jeffrey Rackauckas
3d777bb386
Move logic to handle terminal not supporting colors to use_color
2018-08-30 19:15:46 -07:00
Jeffrey Rackauckas
a970d3b69b
Removing useless pass statement.
2018-08-30 18:45:29 -07:00
Jeffrey Rackauckas
1bd6fce7dc
Don't print bogus characters on windows terminals that don't support colors.
2018-08-29 18:54:55 -07:00
Anthony Sottile
18c9e061d8
Small cleanups
2017-09-30 15:53:44 -07:00
Paul Hooijenga
6c588f189d
Windows: enable ANSI escape support in console.
2017-04-01 23:34:02 +02:00
Anthony Sottile
b81c9802ae
Remove py26 format literals
...
Resolves #403
2016-09-15 08:41:58 -07:00
Anthony Sottile
eb6da4ae10
Improve --color help with argparse metavar
2016-03-08 16:34:09 -08:00
Anthony Sottile
85a76617c1
Refactor fixtures in tests.
2014-06-15 18:49:45 -07:00
Anthony Sottile
1746a97e24
Better project structure
2014-04-12 15:56:18 -07:00
Anthony Sottile
a3720c0645
Add logging handler.
2014-04-05 21:50:20 -07:00
Anthony Sottile
73e0111e38
Wire in color for pre-commit. Closes #63 .
2014-04-05 19:31:31 -07:00
Anthony Sottile
6a1f945e31
Add color utility.
2014-04-05 19:12:30 -07:00