Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-covdefaults for openSUSE:Factory checked in at 2022-12-08 16:50:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-covdefaults (Old) and /work/SRC/openSUSE:Factory/.python-covdefaults.new.1835 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-covdefaults" Thu Dec 8 16:50:50 2022 rev:3 rq:1041186 version:2.2.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-covdefaults/python-covdefaults.changes 2022-09-27 20:14:49.665944868 +0200 +++ /work/SRC/openSUSE:Factory/.python-covdefaults.new.1835/python-covdefaults.changes 2022-12-08 16:51:14.875502149 +0100 @@ -1,0 +2,10 @@ +Wed Dec 7 15:57:27 UTC 2022 - Yogalakshmi Arunachalam <yarunacha...@suse.com> + +- Update to v2.2.2 + * Merge pull request #97 from sobolevn/patch-1 + * Do not report class level `if TYPE_CHECKING` as uncovered + +- Update to v2.2.1 + * A coverage plugin to provide sensible default settings + +------------------------------------------------------------------- Old: ---- covdefaults-2.2.0.tar.gz New: ---- covdefaults-2.2.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-covdefaults.spec ++++++ --- /var/tmp/diff_new_pack.Mn23Hb/_old 2022-12-08 16:51:15.307504359 +0100 +++ /var/tmp/diff_new_pack.Mn23Hb/_new 2022-12-08 16:51:15.315504400 +0100 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-covdefaults -Version: 2.2.0 +Version: 2.2.2 Release: 0 Summary: Python coverage plugin to provide default settings License: MIT ++++++ covdefaults-2.2.0.tar.gz -> covdefaults-2.2.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/covdefaults-2.2.0/.gitignore new/covdefaults-2.2.2/.gitignore --- old/covdefaults-2.2.0/.gitignore 2022-01-05 19:21:57.000000000 +0100 +++ new/covdefaults-2.2.2/.gitignore 2022-12-03 18:45:41.000000000 +0100 @@ -1,6 +1,4 @@ *.egg-info *.pyc /.coverage -/.mypy_cache /.tox -/venv* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/covdefaults-2.2.0/.pre-commit-config.yaml new/covdefaults-2.2.2/.pre-commit-config.yaml --- old/covdefaults-2.2.0/.pre-commit-config.yaml 2022-01-05 19:21:57.000000000 +0100 +++ new/covdefaults-2.2.2/.pre-commit-config.yaml 2022-12-03 18:45:41.000000000 +0100 @@ -1,44 +1,42 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.1.0 + rev: v4.4.0 hooks: - - id: check-docstring-first + - id: trailing-whitespace + - id: end-of-file-fixer - id: check-yaml - id: debug-statements - id: double-quote-string-fixer - - id: end-of-file-fixer - id: name-tests-test - id: requirements-txt-fixer - - id: trailing-whitespace - repo: https://github.com/asottile/setup-cfg-fmt - rev: v1.20.0 + rev: v2.2.0 hooks: - id: setup-cfg-fmt -- repo: https://github.com/PyCQA/flake8 - rev: 4.0.1 - hooks: - - id: flake8 - additional_dependencies: [flake8-typing-imports==1.9.0] -- repo: https://github.com/pre-commit/mirrors-autopep8 - rev: v1.6.0 - hooks: - - id: autopep8 - repo: https://github.com/asottile/reorder_python_imports - rev: v2.6.0 + rev: v3.9.0 hooks: - id: reorder-python-imports - args: [--py3-plus] + args: [--py37-plus, --add-import, 'from __future__ import annotations'] - repo: https://github.com/asottile/add-trailing-comma - rev: v2.2.1 + rev: v2.3.0 hooks: - id: add-trailing-comma args: [--py36-plus] - repo: https://github.com/asottile/pyupgrade - rev: v2.31.0 + rev: v3.2.2 hooks: - id: pyupgrade - args: [--py36-plus] + args: [--py37-plus] +- repo: https://github.com/pre-commit/mirrors-autopep8 + rev: v2.0.0 + hooks: + - id: autopep8 +- repo: https://github.com/PyCQA/flake8 + rev: 6.0.0 + hooks: + - id: flake8 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.930 + rev: v0.991 hooks: - id: mypy diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/covdefaults-2.2.0/README.md new/covdefaults-2.2.2/README.md --- old/covdefaults-2.2.0/README.md 2022-01-05 19:21:57.000000000 +0100 +++ new/covdefaults-2.2.2/README.md 2022-12-03 18:45:41.000000000 +0100 @@ -1,6 +1,6 @@ -[](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=62&branchName=master) -[](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=62&branchName=master) -[](https://results.pre-commit.ci/latest/github/asottile/covdefaults/master) +[](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=62&branchName=main) +[](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=62&branchName=main) +[](https://results.pre-commit.ci/latest/github/asottile/covdefaults/main) covdefaults =========== @@ -67,7 +67,7 @@ ^\s*raise$ # typing-related code - ^if (False|TYPE_CHECKING): + ^\s*if (False|TYPE_CHECKING): : \.\.\.(\s*#.*)?$ ^ +\.\.\.$ -> ['"]?NoReturn['"]?: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/covdefaults-2.2.0/azure-pipelines.yml new/covdefaults-2.2.2/azure-pipelines.yml --- old/covdefaults-2.2.0/azure-pipelines.yml 2022-01-05 19:21:57.000000000 +0100 +++ new/covdefaults-2.2.2/azure-pipelines.yml 2022-12-03 18:45:41.000000000 +0100 @@ -1,6 +1,6 @@ trigger: branches: - include: [master, test-me-*] + include: [main, test-me-*] tags: include: ['*'] @@ -10,10 +10,10 @@ type: github endpoint: github name: asottile/azure-pipeline-templates - ref: refs/tags/v2.1.0 + ref: refs/tags/v2.4.0 jobs: - template: job--python-tox.yml@asottile parameters: - toxenvs: [pypy3, py36, py37, py38] + toxenvs: [py37, py38, py39, py310] os: linux diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/covdefaults-2.2.0/covdefaults.py new/covdefaults-2.2.2/covdefaults.py --- old/covdefaults-2.2.0/covdefaults.py 2022-01-05 19:21:57.000000000 +0100 +++ new/covdefaults-2.2.2/covdefaults.py 2022-12-03 18:45:41.000000000 +0100 @@ -1,9 +1,8 @@ +from __future__ import annotations + import os import sys from typing import Any -from typing import Dict -from typing import List -from typing import Tuple from coverage import CoveragePlugin from coverage.config import CoverageConfig @@ -20,7 +19,7 @@ ) -def _plat_impl_pragmas() -> List[str]: +def _plat_impl_pragmas() -> list[str]: tags = {os.name, sys.platform, sys.implementation.name} ret = [fr'# pragma: {tag} cover\b' for tag in _ALL if tag not in tags] ret.extend(fr'# pragma: {tag} no cover\b' for tag in tags) @@ -59,7 +58,7 @@ def _version_pragmas( major: int = sys.version_info[0], minor: int = sys.version_info[1], -) -> List[str]: +) -> list[str]: return [ # < fr'# pragma: <=?{_lt(major)}\.\d+ cover\b', @@ -75,7 +74,7 @@ ] -OPTIONS: Tuple[Tuple[str, Any], ...] = ( +OPTIONS: tuple[tuple[str, Any], ...] = ( ('run:branch', True), ('report:show_missing', True), @@ -94,7 +93,7 @@ r'^\s*return NotImplemented\b', r'^\s*raise$', # typing-related code - r'^if (False|TYPE_CHECKING):', + r'^\s*if (False|TYPE_CHECKING):', r': \.\.\.(\s*#.*)?$', r'^ +\.\.\.$', r'-> [\'"]?NoReturn[\'"]?:', @@ -147,5 +146,5 @@ config.set_option('report:fail_under', 100) -def coverage_init(reg: Plugins, options: Dict[str, str]) -> None: +def coverage_init(reg: Plugins, options: dict[str, str]) -> None: reg.add_configurer(CovDefaults(**options)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/covdefaults-2.2.0/setup.cfg new/covdefaults-2.2.2/setup.cfg --- old/covdefaults-2.2.0/setup.cfg 2022-01-05 19:21:57.000000000 +0100 +++ new/covdefaults-2.2.2/setup.cfg 2022-12-03 18:45:41.000000000 +0100 @@ -1,6 +1,6 @@ [metadata] name = covdefaults -version = 2.2.0 +version = 2.2.2 description = A coverage plugin to provide sensible default settings long_description = file: README.md long_description_content_type = text/markdown @@ -13,11 +13,6 @@ License :: OSI Approved :: MIT License Programming Language :: Python :: 3 Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3.6 - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 Programming Language :: Python :: Implementation :: CPython Programming Language :: Python :: Implementation :: PyPy @@ -25,7 +20,7 @@ py_modules = covdefaults install_requires = coverage>=6.0.2 -python_requires = >=3.6.1 +python_requires = >=3.7 [bdist_wheel] universal = True @@ -38,7 +33,6 @@ disallow_any_generics = true disallow_incomplete_defs = true disallow_untyped_defs = true -no_implicit_optional = true warn_redundant_casts = true warn_unused_ignores = true diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/covdefaults-2.2.0/setup.py new/covdefaults-2.2.2/setup.py --- old/covdefaults-2.2.0/setup.py 2022-01-05 19:21:57.000000000 +0100 +++ new/covdefaults-2.2.2/setup.py 2022-12-03 18:45:41.000000000 +0100 @@ -1,2 +1,4 @@ +from __future__ import annotations + from setuptools import setup setup() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/covdefaults-2.2.0/tests/covdefaults_test.py new/covdefaults-2.2.2/tests/covdefaults_test.py --- old/covdefaults-2.2.0/tests/covdefaults_test.py 2022-01-05 19:21:57.000000000 +0100 +++ new/covdefaults-2.2.2/tests/covdefaults_test.py 2022-12-03 18:45:41.000000000 +0100 @@ -1,3 +1,5 @@ +from __future__ import annotations + import importlib import re @@ -165,7 +167,9 @@ ' return NotImplemented\n', ' raise\n', 'if False:\n', + ' if False:\n', 'if TYPE_CHECKING:\n', + ' if TYPE_CHECKING:\n', 'def f(x: int) -> int: ...\n', 'def f(x: int) -> int:\n ...\n', 'def f(x: int) -> C: ...# noqa: F821\n', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/covdefaults-2.2.0/tox.ini new/covdefaults-2.2.2/tox.ini --- old/covdefaults-2.2.0/tox.ini 2022-01-05 19:21:57.000000000 +0100 +++ new/covdefaults-2.2.2/tox.ini 2022-12-03 18:45:41.000000000 +0100 @@ -1,5 +1,5 @@ [tox] -envlist = py36,py37,py38,pypy3,pre-commit +envlist = py37,py38,pypy3,pre-commit [testenv] deps = -rrequirements-dev.txt