Closed KelSolaar closed 10 months ago
This PR implements support to load environment variables from a file.
It is now possible to create a ~/.colour-science/colour-science.jenv JSON file from which Colour will load environment variables from:
~/.colour-science/colour-science.jenv
{ "COLOUR_SCIENCE__COLOUR__SHOW_WARNINGS_WITH_TRACEBACK": 1 }
The following new environment variables are now supported:
COLOUR_SCIENCE__FILTER_RUNTIME_WARNINGS
COLOUR_SCIENCE__FILTER_USAGE_WARNINGS
COLOUR_SCIENCE__FILTER_COLOUR_WARNINGS
COLOUR_SCIENCE__FILTER_PYTHON_WARNINGS
This should help with #1221 and #1237.
Code Style and Quality
colour
colour.models
Documentation
coverage: 99.721% (-0.009%) from 99.73% when pulling 2baa1a941cb03b9de3207cd5482e3cc619e2aae2 on feature/jenv into 8098fbc6c5031a8542ead303b35d080f90a3ffed on develop.
Summary
This PR implements support to load environment variables from a file.
It is now possible to create a
~/.colour-science/colour-science.jenv
JSON file from which Colour will load environment variables from:The following new environment variables are now supported:
COLOUR_SCIENCE__FILTER_RUNTIME_WARNINGS
: Filter Colour runtime warnings.COLOUR_SCIENCE__FILTER_USAGE_WARNINGS
: Filter Colour usage warnings.COLOUR_SCIENCE__FILTER_COLOUR_WARNINGS
: Filter Colour warnings, this also filters Colour usage and runtime warnings.COLOUR_SCIENCE__FILTER_PYTHON_WARNINGS
: Filter Python warnings.This should help with #1221 and #1237.
Preflight
Code Style and Quality
colour
,colour.models
.Documentation