Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

visually mark lines that are not code (in check_config) #2

@mfrasca

Description

@mfrasca

when you execute a check_config, you get two kind of lines, some explaining what the check is about, some that you can copy and paste into the code.
what about making some visual distinction between the two?
obviously keeping that code lines can be copied and pasted verbatim.

look at the output:

lizard_map.adapter DEBUG No locale nl_NL.UTF8 on this os. Using default locale.
lizard_ui.management.commands.check_config INFO Running checker "Verify lizard_ui's demands on settings.py."
Setting LOGGING is missing a root ('') log handler.
Can't log other errors. Suggestion:
from lizard_ui.settingshelper import setup_logging
LOGGING = setup_logging(BUILDOUT_DIR)
lizard_ui.configchecker ERROR 'compressor.finders.CompressorFinder' is missing from STATICFILES_FINDERS. Suggestion:
from lizard_ui.settingshelper import STATICFILES_FINDERS
STATICFILES_FINDERS = STATICFILES_FINDERS

I think this other setup is easier to read (YMMV).

> lizard_map.adapter DEBUG No locale nl_NL.UTF8 on this os. Using default locale.
> lizard_ui.management.commands.check_config INFO Running checker "Verify lizard_ui's demands on settings.py."
> Setting LOGGING is missing a root ('') log handler.
> Can't log other errors. Suggestion:
from lizard_ui.settingshelper import setup_logging
LOGGING = setup_logging(BUILDOUT_DIR)
> lizard_ui.configchecker ERROR 'compressor.finders.CompressorFinder' is missing from STATICFILES_FINDERS. Suggestion:
from lizard_ui.settingshelper import STATICFILES_FINDERS
STATICFILES_FINDERS = STATICFILES_FINDERS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions