| Total Complexity | 0 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | """Program defaults.""" |
||
| 2 | |||
| 3 | 1 | import logging |
|
| 4 | 1 | import os |
|
| 5 | |||
| 6 | |||
| 7 | 1 | # Cache settings |
|
| 8 | CACHE = os.path.expanduser(os.getenv('GITMAN_CACHE', "~/.gitcache")) |
||
| 9 | |||
| 10 | 1 | # Logging settings |
|
| 11 | 1 | DEFAULT_LOGGING_FORMAT = "%(message)s" |
|
| 12 | 1 | LEVELED_LOGGING_FORMAT = "%(levelname)s: %(message)s" |
|
| 13 | 1 | VERBOSE_LOGGING_FORMAT = "[%(levelname)-8s] %(message)s" |
|
| 14 | 1 | VERBOSE2_LOGGING_FORMAT = "[%(levelname)-8s] (%(name)s @%(lineno)4d) %(message)s" # pylint: disable=C0301 |
|
| 15 | 1 | QUIET_LOGGING_LEVEL = logging.ERROR |
|
| 16 | 1 | DEFAULT_LOGGING_LEVEL = logging.WARNING |
|
| 17 | 1 | VERBOSE_LOGGING_LEVEL = logging.INFO |
|
| 18 | 1 | VERBOSE2_LOGGING_LEVEL = logging.DEBUG |
|
| 19 | LOGGING_DATEFMT = "%Y-%m-%d %H:%M" |
||
| 20 | |||
| 21 | 1 | # 3rd party settings |
|
| 22 | 1 | YORM_LOGGING_LEVEL = logging.WARNING |
|
| 23 | SH_LOGGING_LEVEL = logging.WARNING |
||
| 24 |