You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yamllint/tests
Adrien Vergé a2c68fdf9b feat(cli): Colour output only on TTY
When piping yamllint output to a file, "coloured" characters aren't
interpreted and pollute text formatting with glyphs like:

  �[4m./global.yaml�[0m
    �[2m1439:52�[0m   �[31merror�[0m    no new line character...

With this commit, stdout is checked: if it's a TTY then output is
coloured, otherwise output is simple text.

Closes: #14
9 years ago
..
rules parser: Iterate over lines + tokens + comments 9 years ago
yaml-1.2-spec-examples Tests: Remove ghost character from YAML spec example 9 years ago
__init__.py Tests: Run with LC_ALL=C for uniform tests 9 years ago
common.py Tests: Reorganize common and global tests 9 years ago
test_cli.py feat(cli): Colour output only on TTY 9 years ago
test_config.py Tests: config: Check the non-valid-yaml-config case 9 years ago
test_linter.py linter: Fix UnicodeError when parsing comments 9 years ago
test_parser.py parser: Add tests for `Comment.is_inline()` 9 years ago
test_spec_examples.py Tests: Use absolute path to spec examples 9 years ago
test_syntax_errors.py Rules: indentation: Handle sets 9 years ago
test_yamllint_directives.py Allow disabling yamllint checks using comments 9 years ago