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é b92fc9cb31 colons: Prevent error when space before is mandatory
In the rare case when the key before `:` is an alias (e.g. `{*x : 4}`),
the space before `:` is required (although this requirement is not
enforced by PyYAML), the reason being that a colon can be part of an
anchor name. Consequently, this commit adapts the `colons` rule to avoid
failures when this happens.

See this comment from Tina Müller for more details:
https://github.com/adrienverge/yamllint/pull/550#discussion_r1155297373
2 years ago
..
rules colons: Prevent error when space before is mandatory 2 years ago
yaml-1.2-spec-examples Tests: Remove ghost character from YAML spec example 9 years ago
__init__.py refactor: Remove UTF-8 headers in Python files 3 years ago
common.py tests: Increase test coverage 3 years ago
test_cli.py cli: Add --list-files command line option 2 years ago
test_config.py configuration: Allow using a list of strings in ignore configuration 2 years ago
test_linter.py Remove Unicode marker before strings 2 years ago
test_module.py refactor: Remove UTF-8 headers in Python files 3 years ago
test_parser.py refactor: Remove UTF-8 headers in Python files 3 years ago
test_spec_examples.py Apply some pyupgrade suggestions 2 years ago
test_syntax_errors.py refactor: Remove UTF-8 headers in Python files 3 years ago
test_yamllint_directives.py refactor: Remove UTF-8 headers in Python files 3 years ago