nitpick.enums module

Enums.

class nitpick.enums.CachingEnum(value)[source]

Bases: enum.IntEnum

Caching modes for styles.

EXPIRES = 3

The cache expires after the configured amount of time (minutes/hours/days).

FOREVER = 2

Once the style(s) are cached, they never expire.

NEVER = 1

Never cache, the style file(s) are always looked-up.

class nitpick.enums.OptionEnum(value)[source]

Bases: nitpick.enums._OptionMixin, enum.Enum

Options to be used with the CLI.

OFFLINE = 'Offline mode: no style will be downloaded (no HTTP requests at all)'
name: str