Hello community,
here is the log from the commit of package python-yamllint for openSUSE:Factory
checked in at 2019-10-31 18:18:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-yamllint (Old)
and /work/SRC/openSUSE:Factory/.python-yamllint.new.2990 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-yamllint"
Thu Oct 31 18:18:05 2019 rev:7 rq:744156 version:1.18.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-yamllint/python-yamllint.changes
2019-09-05 12:34:04.963576086 +0200
+++
/work/SRC/openSUSE:Factory/.python-yamllint.new.2990/python-yamllint.changes
2019-10-31 18:18:22.842204640 +0100
@@ -1,0 +2,10 @@
+Wed Oct 30 12:21:46 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 1.18.0:
+ * Lint .yamllint config file by default
+ * Also read config from .yamllint.yml and .yamllint.yaml
+ * Improve documentation for yaml-files
+ * Update documentation for pre-commit
+ * Explicitly disable empty-values and octal-values rules
+
+-------------------------------------------------------------------
Old:
----
yamllint-1.17.0.tar.gz
New:
----
yamllint-1.18.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-yamllint.spec ++++++
--- /var/tmp/diff_new_pack.xCjwmk/_old 2019-10-31 18:18:23.534205356 +0100
+++ /var/tmp/diff_new_pack.xCjwmk/_new 2019-10-31 18:18:23.538205360 +0100
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-yamllint
-Version: 1.17.0
+Version: 1.18.0
Release: 0
Summary: A linter for YAML files
License: GPL-3.0-only
@@ -34,9 +34,6 @@
# SECTION test requirements
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module pathspec >= 0.5.3}
-# nose is optional, used only to exclude a failing test caused by PyYAML
-# deprecation warnings.
-BuildRequires: %{python_module nose}
# /SECTION
%python_subpackages
@@ -58,7 +55,7 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-%python_exec -m nose -e test_run_auto_output_without_tty_output
+%python_exec -m unittest discover
%files %{python_files}
%doc README.rst
++++++ yamllint-1.17.0.tar.gz -> yamllint-1.18.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yamllint-1.17.0/PKG-INFO new/yamllint-1.18.0/PKG-INFO
--- old/yamllint-1.17.0/PKG-INFO 2019-08-12 16:57:07.000000000 +0200
+++ new/yamllint-1.18.0/PKG-INFO 2019-10-15 09:50:07.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: yamllint
-Version: 1.17.0
+Version: 1.18.0
Summary: A linter for YAML files.
Home-page: https://github.com/adrienverge/yamllint
Author: Adrien Vergé
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yamllint-1.17.0/docs/configuration.rst
new/yamllint-1.18.0/docs/configuration.rst
--- old/yamllint-1.17.0/docs/configuration.rst 2019-08-12 16:53:44.000000000
+0200
+++ new/yamllint-1.18.0/docs/configuration.rst 2019-10-15 09:41:40.000000000
+0200
@@ -14,7 +14,8 @@
If ``-c`` is not provided, yamllint will look for a configuration file in the
following locations (by order of preference):
-- ``.yamllint`` in the current working directory
+- ``.yamllint``, ``.yamllint.yaml`` or ``.yamllint.yml`` in the current working
+ directory
- ``$XDG_CONFIG_HOME/yamllint/config``
- ``~/.config/yamllint/config``
@@ -124,8 +125,9 @@
.. code-block:: yaml
yaml-files:
- - '*.yaml'
- - '*.yml'
+ - '*.yaml'
+ - '*.yml'
+ - '.yamllint'
The same rules as for ignoring paths apply (``.gitignore``-style path pattern,
see below).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yamllint-1.17.0/docs/integration.rst
new/yamllint-1.18.0/docs/integration.rst
--- old/yamllint-1.17.0/docs/integration.rst 2017-08-17 12:08:54.000000000
+0200
+++ new/yamllint-1.18.0/docs/integration.rst 2019-10-15 09:41:40.000000000
+0200
@@ -10,8 +10,10 @@
.. code:: yaml
---
- # Update the sha variable with the release version that you want, from the
yamllint repo
+ # Update the rev variable with the release version that you want, from the
yamllint repo
+ # You can pass your custom .yamllint with args attribute.
- repo: https://github.com/adrienverge/yamllint.git
- sha: v1.8.1
+ rev: v1.17.0
hooks:
- id: yamllint
+ args: [-c=/path/to/.yamllint]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yamllint-1.17.0/tests/rules/test_octal_values.py
new/yamllint-1.18.0/tests/rules/test_octal_values.py
--- old/yamllint-1.17.0/tests/rules/test_octal_values.py 2018-02-21
12:10:11.000000000 +0100
+++ new/yamllint-1.18.0/tests/rules/test_octal_values.py 2019-10-15
09:41:40.000000000 +0200
@@ -28,7 +28,9 @@
self.check('user-city: 0o10', conf)
def test_implicit_octal_values(self):
- conf = ('octal-values: {forbid-implicit-octal: true}\n'
+ conf = ('octal-values:\n'
+ ' forbid-implicit-octal: true\n'
+ ' forbid-explicit-octal: false\n'
'new-line-at-end-of-file: disable\n'
'document-start: disable\n')
self.check('user-city: 010', conf, problem=(1, 15))
@@ -50,7 +52,9 @@
' - 0e3\n', conf)
def test_explicit_octal_values(self):
- conf = ('octal-values: {forbid-explicit-octal: true}\n'
+ conf = ('octal-values:\n'
+ ' forbid-implicit-octal: false\n'
+ ' forbid-explicit-octal: true\n'
'new-line-at-end-of-file: disable\n'
'document-start: disable\n')
self.check('user-city: 0o10', conf, problem=(1, 16))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yamllint-1.17.0/tests/test_config.py
new/yamllint-1.18.0/tests/test_config.py
--- old/yamllint-1.17.0/tests/test_config.py 2019-07-16 11:14:11.000000000
+0200
+++ new/yamllint-1.18.0/tests/test_config.py 2019-08-26 10:02:14.000000000
+0200
@@ -448,11 +448,13 @@
out = sys.stdout.getvalue()
out = '\n'.join(sorted(out.splitlines()))
+ docstart = '[warning] missing document start "---" (document-start)'
keydup = '[error] duplication of key "key" in mapping (key-duplicates)'
trailing = '[error] trailing spaces (trailing-spaces)'
hyphen = '[error] too many spaces after hyphen (hyphens)'
self.assertEqual(out, '\n'.join((
+ './.yamllint:1:1: ' + docstart,
'./bin/file.lint-me-anyway.yaml:3:3: ' + keydup,
'./bin/file.lint-me-anyway.yaml:4:17: ' + trailing,
'./bin/file.lint-me-anyway.yaml:5:5: ' + hyphen,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yamllint-1.17.0/yamllint/__init__.py
new/yamllint-1.18.0/yamllint/__init__.py
--- old/yamllint-1.17.0/yamllint/__init__.py 2019-08-12 16:52:42.000000000
+0200
+++ new/yamllint-1.18.0/yamllint/__init__.py 2019-10-15 09:49:16.000000000
+0200
@@ -22,7 +22,7 @@
APP_NAME = 'yamllint'
-APP_VERSION = '1.17.0'
+APP_VERSION = '1.18.0'
APP_DESCRIPTION = __doc__
__author__ = u'Adrien Vergé'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yamllint-1.17.0/yamllint/cli.py
new/yamllint-1.18.0/yamllint/cli.py
--- old/yamllint-1.17.0/yamllint/cli.py 2019-08-12 16:53:44.000000000 +0200
+++ new/yamllint-1.18.0/yamllint/cli.py 2019-10-15 09:41:40.000000000 +0200
@@ -154,6 +154,10 @@
conf = YamlLintConfig(file=args.config_file)
elif os.path.isfile('.yamllint'):
conf = YamlLintConfig(file='.yamllint')
+ elif os.path.isfile('.yamllint.yaml'):
+ conf = YamlLintConfig(file='.yamllint.yaml')
+ elif os.path.isfile('.yamllint.yml'):
+ conf = YamlLintConfig(file='.yamllint.yml')
elif os.path.isfile(user_global_config):
conf = YamlLintConfig(file=user_global_config)
else:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yamllint-1.17.0/yamllint/conf/default.yaml
new/yamllint-1.18.0/yamllint/conf/default.yaml
--- old/yamllint-1.17.0/yamllint/conf/default.yaml 2019-08-12
16:53:44.000000000 +0200
+++ new/yamllint-1.18.0/yamllint/conf/default.yaml 2019-10-15
09:41:40.000000000 +0200
@@ -3,6 +3,7 @@
yaml-files:
- '*.yaml'
- '*.yml'
+ - '.yamllint'
rules:
braces: enable
@@ -17,7 +18,7 @@
document-start:
level: warning
empty-lines: enable
- empty-values: enable
+ empty-values: disable
hyphens: enable
indentation: enable
key-duplicates: enable
@@ -25,7 +26,7 @@
line-length: enable
new-line-at-end-of-file: enable
new-lines: enable
- octal-values: enable
+ octal-values: disable
quoted-strings: disable
trailing-spaces: enable
truthy:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yamllint-1.17.0/yamllint/config.py
new/yamllint-1.18.0/yamllint/config.py
--- old/yamllint-1.17.0/yamllint/config.py 2019-08-12 16:53:44.000000000
+0200
+++ new/yamllint-1.18.0/yamllint/config.py 2019-08-26 10:02:14.000000000
+0200
@@ -33,7 +33,7 @@
self.ignore = None
self.yaml_files = pathspec.PathSpec.from_lines(
- 'gitwildmatch', ['*.yaml', '*.yml'])
+ 'gitwildmatch', ['*.yaml', '*.yml', '.yamllint'])
if file is not None:
with open(file) as f:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yamllint-1.17.0/yamllint/rules/empty_values.py
new/yamllint-1.18.0/yamllint/rules/empty_values.py
--- old/yamllint-1.17.0/yamllint/rules/empty_values.py 2019-01-11
12:00:07.000000000 +0100
+++ new/yamllint-1.18.0/yamllint/rules/empty_values.py 2019-10-15
09:41:40.000000000 +0200
@@ -75,8 +75,8 @@
TYPE = 'token'
CONF = {'forbid-in-block-mappings': bool,
'forbid-in-flow-mappings': bool}
-DEFAULT = {'forbid-in-block-mappings': False,
- 'forbid-in-flow-mappings': False}
+DEFAULT = {'forbid-in-block-mappings': True,
+ 'forbid-in-flow-mappings': True}
def check(conf, token, prev, next, nextnext, context):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yamllint-1.17.0/yamllint/rules/octal_values.py
new/yamllint-1.18.0/yamllint/rules/octal_values.py
--- old/yamllint-1.17.0/yamllint/rules/octal_values.py 2019-01-11
12:00:07.000000000 +0100
+++ new/yamllint-1.18.0/yamllint/rules/octal_values.py 2019-10-15
09:41:40.000000000 +0200
@@ -66,8 +66,8 @@
TYPE = 'token'
CONF = {'forbid-implicit-octal': bool,
'forbid-explicit-octal': bool}
-DEFAULT = {'forbid-implicit-octal': False,
- 'forbid-explicit-octal': False}
+DEFAULT = {'forbid-implicit-octal': True,
+ 'forbid-explicit-octal': True}
def check(conf, token, prev, next, nextnext, context):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yamllint-1.17.0/yamllint.egg-info/PKG-INFO
new/yamllint-1.18.0/yamllint.egg-info/PKG-INFO
--- old/yamllint-1.17.0/yamllint.egg-info/PKG-INFO 2019-08-12
16:57:07.000000000 +0200
+++ new/yamllint-1.18.0/yamllint.egg-info/PKG-INFO 2019-10-15
09:50:06.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: yamllint
-Version: 1.17.0
+Version: 1.18.0
Summary: A linter for YAML files.
Home-page: https://github.com/adrienverge/yamllint
Author: Adrien Vergé