Adrien Vergé
b97b6ad19b
style(tests): Fix new flake8 errors
...
This change fixes new errors detected by the last version of pycodestyle
(2.2.0), which is a dependency of flake8:
./tests/test_spec_examples.py:51:1: E305 expected 2 blank lines
after class or function definition, found 1
./tests/test_spec_examples.py:139:1: E305 expected 2 blank lines
after class or function definition, found 1
See pycodestyle changelog at 2.2.0 and
https://github.com/PyCQA/pycodestyle/pull/593 .
2016-11-17 12:24:38 +01:00
Peter Ericson
1f472bc144
Add rule: truthy, to forbid truthy values that are not quoted
2016-10-01 09:03:59 +02:00
Adrien Vergé
29c1c60143
Tests: Use absolute path to spec examples
2016-03-04 12:15:26 +01:00
Adrien Vergé
10ad302e2f
Tests: Explicit encoding for spec examples
...
YAML specification examples contain unusual characters, let's explicit
`encoding='utf-8'` to prevent bugs.
2016-02-25 10:44:05 +01:00
Adrien Vergé
6c8af97a40
Tests: unblacklist remaining spec examples
...
Since !!tags are now supported.
2016-02-05 11:14:37 +01:00
Adrien Vergé
8eb0d0ad74
Tests: unblacklist spec example 7.16
...
As is it supported -- it just lacks some indentation.
2016-02-05 09:52:09 +01:00
Adrien Vergé
ba140ad42c
Tests: Remove ghost character from YAML spec example
2016-02-01 23:27:49 +01:00
Adrien Vergé
c16eec4681
Style: Fix indentation not multiple of four
2016-02-01 21:36:35 +01:00
Adrien Vergé
68618be4cc
Rules: indentation: Handle sets
...
Sets are like mappings, that do not contain values. Example:
set:
? key one
? key two
? [non, scalar, key]
2016-02-01 17:52:46 +01:00
Adrien Vergé
431a379c81
Tests: Add tests from YAML 1.2 specification
...
Write all examples from http://www.yaml.org/spec/1.2/spec.html in
independent files in tests/yaml-1.2-spec-examples; and test them with
yamllint.
2016-02-01 17:05:22 +01:00