Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
colcon-ansi-colors-example
==========================
colcon-ansi-colors
==================

An extension for `colcon-core <https://github.com/colcon/colcon-core>`_ to colorize output using ANSI sequences.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def apply_style(self, style): # noqa: D102
style.PackageOrJobName = AnsiEscape.Cyan
style.Pictogram = AnsiEscape.Bright + AnsiEscape.Green
style.SectionStart = AnsiEscape.Default
style.SectionEnd = AnsiEscape.Bright + AnsiEscape.Black
style.SectionEnd = AnsiEscape.Faint + AnsiEscape.Default

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better and more readable on a dark terminal:
Screenshot from 2025-08-07 20-08-20

style.Strong = AnsiEscape.Bright
style.Success = AnsiEscape.Green
style.Warning = AnsiEscape.Yellow
Expand Down
14 changes: 7 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[metadata]
name = colcon-ansi-colors-example
version = attr: colcon_ansi_colors_example.__version__
name = colcon-ansi-colors
version = attr: colcon_ansi_colors.__version__
url = https://colcon.readthedocs.io
project_urls =
Changelog = https://github.com/colcon/colcon-ansi-colors-example/milestones?direction=desc&sort=due_date&state=closed
GitHub = https://github.com/colcon/colcon-ansi-colors-example/
Changelog = https://github.com/colcon/colcon-ansi-colors/milestones?direction=desc&sort=due_date&state=closed
GitHub = https://github.com/colcon/colcon-ansi-colors/
author = Scott K Logan
author_email = [email protected]
classifiers =
Expand Down Expand Up @@ -46,17 +46,17 @@ test =
scspell3k>=2.2

[tool:pytest]
junit_suite_name = colcon-ansi-colors-example
junit_suite_name = colcon-ansi-colors
markers =
flake8
linter

[options.entry_points]
colcon_core.output_style =
catkin_tools = colcon_ansi_colors_example.output_style.catkin_tools:CatkinToolsOutputStyle
catkin_tools = colcon_ansi_colors.output_style.catkin_tools:CatkinToolsOutputStyle

[flake8]
import-order-style = google

[coverage:run]
source = colcon_ansi_colors_example
source = colcon_ansi_colors
2 changes: 1 addition & 1 deletion stdeb.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[colcon-ansi-colors-example]
[colcon-ansi-colors]
No-Python2:
Depends3: python3-colcon-core
Suite: focal jammy noble bookworm trixie
Expand Down
2 changes: 1 addition & 1 deletion test/test_flake8.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_flake8():
sys.stdout = sys.stderr
# implicitly calls report_errors()
report = style_guide.check_files([
str(Path(__file__).parents[1] / 'colcon_ansi_colors_example'),
str(Path(__file__).parents[1] / 'colcon_ansi_colors'),
])
report_tests = style_guide_tests.check_files([
str(Path(__file__).parents[1] / 'test'),
Expand Down
2 changes: 1 addition & 1 deletion test/test_spell_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_spell_check(known_words):

source_filenames = [Path(__file__).parents[1] / 'setup.py'] + \
list(
(Path(__file__).parents[1] / 'colcon_ansi_colors_example')
(Path(__file__).parents[1] / 'colcon_ansi_colors')
.glob('**/*.py')) + \
list((Path(__file__).parents[1] / 'test').glob('**/*.py'))

Expand Down