Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-flake8 for openSUSE:Factory 
checked in at 2021-03-21 23:18:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-flake8 (Old)
 and      /work/SRC/openSUSE:Factory/.python-flake8.new.2401 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-flake8"

Sun Mar 21 23:18:58 2021 rev:33 rq:879751 version:3.9.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-flake8/python-flake8.changes      
2020-10-29 09:47:20.856114291 +0100
+++ /work/SRC/openSUSE:Factory/.python-flake8.new.2401/python-flake8.changes    
2021-03-21 23:18:59.388710797 +0100
@@ -1,0 +2,10 @@
+Tue Mar 16 23:05:12 UTC 2021 - John Vandenberg <[email protected]>
+
+- Update to v3.9.0
+  * Pyflakes has been updated to >= 2.3.0
+  * pycodestyle has been updated to >= 2.7.0
+  * Drop support for python 3.4
+  * Add --no-show-source option to disable --show-source
+  * Fix handling of crlf line endings when linting stdin
+
+-------------------------------------------------------------------

Old:
----
  flake8-3.8.4.tar.gz

New:
----
  flake8-3.9.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-flake8.spec ++++++
--- /var/tmp/diff_new_pack.f7dkmc/_old  2021-03-21 23:18:59.856710957 +0100
+++ /var/tmp/diff_new_pack.f7dkmc/_new  2021-03-21 23:18:59.860710959 +0100
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %bcond_without python2
 Name:           python-flake8
-Version:        3.8.4
+Version:        3.9.0
 Release:        0
 Summary:        Modular source code checker: pep8, pyflakes and co
 License:        MIT
@@ -31,8 +31,8 @@
 BuildRequires:  python-rpm-macros
 Requires:       python-importlib-metadata
 Requires:       python-mccabe >= 0.6.0
-Requires:       python-pycodestyle >= 2.6.0~a1
-Requires:       python-pyflakes >= 2.1.0
+Requires:       python-pycodestyle >= 2.7.0
+Requires:       python-pyflakes >= 2.3.0
 Requires:       python-typing
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
@@ -41,9 +41,8 @@
 BuildRequires:  %{python_module importlib-metadata}
 BuildRequires:  %{python_module mccabe >= 0.6.0}
 BuildRequires:  %{python_module mock}
-BuildRequires:  %{python_module pycodestyle >= 2.6.0~a1}
-BuildRequires:  %{python_module pyflakes >= 2.2.0}
-BuildRequires:  %{python_module pytest-runner}
+BuildRequires:  %{python_module pycodestyle >= 2.7.0}
+BuildRequires:  %{python_module pyflakes >= 2.3.0}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module typing}
 %if %{with python2}

++++++ flake8-3.8.4.tar.gz -> flake8-3.9.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/flake8-3.8.4/PKG-INFO new/flake8-3.9.0/PKG-INFO
--- old/flake8-3.8.4/PKG-INFO   2020-10-03 01:33:47.247389600 +0200
+++ new/flake8-3.9.0/PKG-INFO   2021-03-15 00:30:56.574751100 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: flake8
-Version: 3.8.4
+Version: 3.9.0
 Summary: the modular source code checker: pep8 pyflakes and co
 Home-page: https://gitlab.com/pycqa/flake8
 Author: Tarek Ziade
@@ -96,11 +96,11 @@
 Classifier: Programming Language :: Python :: 2
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
 Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
 Classifier: Topic :: Software Development :: Quality Assurance
-Requires-Python: !=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7
+Requires-Python: !=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/flake8-3.8.4/docs/source/internal/releases.rst 
new/flake8-3.9.0/docs/source/internal/releases.rst
--- old/flake8-3.8.4/docs/source/internal/releases.rst  2020-10-03 
01:13:01.000000000 +0200
+++ new/flake8-3.9.0/docs/source/internal/releases.rst  2021-03-15 
00:05:33.000000000 +0100
@@ -74,8 +74,8 @@
 Process
 =======
 
-To prepare a release, we create a file in :file:`docs/source/releases/` named:
-``{{ release_number }}.rst`` (e.g., ``3.0.0.rst``). We note bug fixes,
+To prepare a release, we create a file in :file:`docs/source/release-notes/`
+named: ``{{ release_number }}.rst`` (e.g., ``3.0.0.rst``). We note bug fixes,
 improvements, and dependency version changes as well as other items of note
 for users.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/flake8-3.8.4/docs/source/release-notes/3.9.0.rst 
new/flake8-3.9.0/docs/source/release-notes/3.9.0.rst
--- old/flake8-3.8.4/docs/source/release-notes/3.9.0.rst        1970-01-01 
01:00:00.000000000 +0100
+++ new/flake8-3.9.0/docs/source/release-notes/3.9.0.rst        2021-03-15 
00:25:48.000000000 +0100
@@ -0,0 +1,45 @@
+3.9.0 -- 2021-03-14
+-------------------
+
+You can view the `3.9.0 milestone`_ on GitLab for more details.
+
+New Dependency Information
+~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+- Pyflakes has been updated to >= 2.3.0, < 2.4.0 (See also `GitLab!466`_)
+
+- pycodestyle has been updated to >= 2.7.0, < 2.8.0 (See also `GitLab!467`_)
+
+Deprecations
+~~~~~~~~~~~~
+
+- Drop support for python 3.4 (See also `GitLab!457`_)
+
+Features
+~~~~~~~~
+
+- Add ``--no-show-source`` option to disable ``--show-source`` (See also
+  `GitLab!441`_)
+
+Bugs Fixed
+~~~~~~~~~~
+
+- Fix handling of ``crlf`` line endings when linting stdin (See also
+  `GitLab!461`_)
+
+
+.. all links
+.. _3.9.0 milestone:
+    https://gitlab.com/pycqa/flake8/-/milestones/38
+
+.. merge request links
+.. _GitLab!441:
+   https://gitlab.com/pycqa/flake8/-/merge_requests/441
+.. _GitLab!457:
+   https://gitlab.com/pycqa/flake8/-/merge_requests/457
+.. _GitLab!461:
+   https://gitlab.com/pycqa/flake8/-/merge_requests/461
+.. _GitLab!466:
+   https://gitlab.com/pycqa/flake8/-/merge_requests/466
+.. _GitLab!467:
+   https://gitlab.com/pycqa/flake8/-/merge_requests/467
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/flake8-3.8.4/docs/source/release-notes/index.rst 
new/flake8-3.9.0/docs/source/release-notes/index.rst
--- old/flake8-3.8.4/docs/source/release-notes/index.rst        2020-10-03 
01:28:47.000000000 +0200
+++ new/flake8-3.9.0/docs/source/release-notes/index.rst        2021-03-15 
00:07:52.000000000 +0100
@@ -9,6 +9,7 @@
 ==================
 
 .. toctree::
+    3.9.0
     3.8.4
     3.8.3
     3.8.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/flake8-3.8.4/docs/source/user/options.rst 
new/flake8-3.9.0/docs/source/user/options.rst
--- old/flake8-3.8.4/docs/source/user/options.rst       2020-10-03 
01:13:01.000000000 +0200
+++ new/flake8-3.9.0/docs/source/user/options.rst       2021-03-14 
23:48:47.000000000 +0100
@@ -64,6 +64,8 @@
 
 - :option:`flake8 --max-doc-length`
 
+- :option:`flake8 --indent-size`
+
 - :option:`flake8 --select`
 
 - :option:`flake8 --disable-noqa`
@@ -570,6 +572,27 @@
 
         max-doc-length = 79
 
+.. option:: --indent-size=<n>
+
+    :ref:`Go back to index <top>`
+
+    Set the number of spaces used for indentation.
+
+    By default, 4.
+
+    Command-line example:
+
+    .. prompt:: bash
+
+        flake8 --indent-size 2 dir/
+
+    This **can** be specified in config files.
+
+    Example config file usage:
+
+    .. code-block:: ini
+
+        indent-size = 2
 
 .. option:: --select=<errors>
 
@@ -795,15 +818,6 @@
         flake8 --output-file=output.txt dir/
         flake8 -vv --output-file=output.txt dir/
 
-    This **can** be specified in config files.
-
-    Example config file usage:
-
-    .. code-block:: ini
-
-        output-file = output.txt
-        output_file = output.txt
-
 
 .. option:: --tee
 
@@ -973,7 +987,7 @@
 
     .. prompt:: bash
 
-        flake8 --exclude-in-doctest=dir/subdir/file.py,dir/other/file.py dir/
+        flake8 --exclude-from-doctest=dir/subdir/file.py,dir/other/file.py dir/
 
     This **can** be specified in config files.
 
@@ -981,10 +995,10 @@
 
     .. code-block:: ini
 
-        exclude-in-doctest =
+        exclude-from-doctest =
             dir/subdir/file.py,
             dir/other/file.py
-        exclude_in_doctest =
+        exclude_from_doctest =
             dir/subdir/file.py,
             dir/other/file.py
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/flake8-3.8.4/setup.cfg new/flake8-3.9.0/setup.cfg
--- old/flake8-3.8.4/setup.cfg  2020-10-03 01:33:47.255389500 +0200
+++ new/flake8-3.9.0/setup.cfg  2021-03-15 00:30:56.574751100 +0100
@@ -23,11 +23,11 @@
        Programming Language :: Python :: 2
        Programming Language :: Python :: 2.7
        Programming Language :: Python :: 3
-       Programming Language :: Python :: 3.4
        Programming Language :: Python :: 3.5
        Programming Language :: Python :: 3.6
        Programming Language :: Python :: 3.7
        Programming Language :: Python :: 3.8
+       Programming Language :: Python :: 3.9
        Topic :: Software Development :: Libraries :: Python Modules
        Topic :: Software Development :: Quality Assurance
 
@@ -36,15 +36,15 @@
        =src
 packages = find:
 install_requires = 
-       pyflakes >= 2.2.0, < 2.3.0
-       pycodestyle >= 2.6.0a1, < 2.7.0
+       pyflakes >= 2.3.0, < 2.4.0
+       pycodestyle >= 2.7.0, < 2.8.0
        mccabe >= 0.6.0, < 0.7.0
        enum34; python_version<"3.4"
        typing; python_version<"3.5"
        configparser; python_version<"3.2"
        functools32; python_version<"3.2"
        importlib-metadata; python_version<"3.8"
-python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
+python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
 
 [options.packages.find]
 where = src
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/flake8-3.8.4/src/flake8/__init__.py 
new/flake8-3.9.0/src/flake8/__init__.py
--- old/flake8-3.8.4/src/flake8/__init__.py     2020-10-03 01:28:54.000000000 
+0200
+++ new/flake8-3.9.0/src/flake8/__init__.py     2021-03-15 00:08:16.000000000 
+0100
@@ -18,7 +18,7 @@
 LOG = logging.getLogger(__name__)
 LOG.addHandler(logging.NullHandler())
 
-__version__ = "3.8.4"
+__version__ = "3.9.0"
 __version_info__ = tuple(
     int(i) for i in __version__.split(".") if i.isdigit()
 )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/flake8-3.8.4/src/flake8/defaults.py 
new/flake8-3.9.0/src/flake8/defaults.py
--- old/flake8-3.8.4/src/flake8/defaults.py     2020-10-03 01:13:01.000000000 
+0200
+++ new/flake8-3.9.0/src/flake8/defaults.py     2021-03-14 23:48:47.000000000 
+0100
@@ -15,6 +15,7 @@
 IGNORE = ("E121", "E123", "E126", "E226", "E24", "E704", "W503", "W504")
 SELECT = ("E", "F", "W", "C90")
 MAX_LINE_LENGTH = 79
+INDENT_SIZE = 4
 
 TRUTHY_VALUES = {"true", "1", "t"}
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/flake8-3.8.4/src/flake8/main/options.py 
new/flake8-3.9.0/src/flake8/main/options.py
--- old/flake8-3.8.4/src/flake8/main/options.py 2020-10-03 01:13:01.000000000 
+0200
+++ new/flake8-3.9.0/src/flake8/main/options.py 2021-03-14 23:48:47.000000000 
+0100
@@ -105,6 +105,7 @@
     - ``--per-file-ignores``
     - ``--max-line-length``
     - ``--max-doc-length``
+    - ``--indent-size``
     - ``--select``
     - ``--disable-noqa``
     - ``--show-source``
@@ -254,6 +255,14 @@
         help="Maximum allowed doc line length for the entirety of this run. "
         "(Default: %(default)s)",
     )
+    add_option(
+        "--indent-size",
+        type=int,
+        metavar="n",
+        default=defaults.INDENT_SIZE,
+        parse_from_config=True,
+        help="Number of spaces used for indentation (Default: %default)",
+    )
 
     add_option(
         "--select",
@@ -282,6 +291,13 @@
         parse_from_config=True,
         help="Show the source generate each error or warning.",
     )
+    add_option(
+        "--no-show-source",
+        action="store_false",
+        dest="show_source",
+        parse_from_config=False,
+        help="Negate --show-source",
+    )
 
     add_option(
         "--statistics",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/flake8-3.8.4/src/flake8/processor.py 
new/flake8-3.9.0/src/flake8/processor.py
--- old/flake8-3.8.4/src/flake8/processor.py    2020-10-03 01:13:01.000000000 
+0200
+++ new/flake8-3.9.0/src/flake8/processor.py    2021-03-14 23:48:47.000000000 
+0100
@@ -83,6 +83,10 @@
         self.indent_char = None  # type: Optional[str]
         #: Current level of indentation
         self.indent_level = 0
+        #: Number of spaces used for indentation
+        self.indent_size = options.indent_size
+        #: String representing the space indentation
+        self.indent_size_str = self.indent_size * " "
         #: Line number in the file
         self.line_number = 0
         #: Current logical line
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/flake8-3.8.4/src/flake8/utils.py 
new/flake8-3.9.0/src/flake8/utils.py
--- old/flake8-3.8.4/src/flake8/utils.py        2020-10-03 01:13:01.000000000 
+0200
+++ new/flake8-3.9.0/src/flake8/utils.py        2021-03-14 23:48:47.000000000 
+0100
@@ -195,7 +195,8 @@
     fd = io.BytesIO(stdin_value)
     try:
         coding, _ = tokenize.detect_encoding(fd.readline)
-        return stdin_value.decode(coding)
+        fd.seek(0)
+        return io.TextIOWrapper(fd, coding).read()
     except (LookupError, SyntaxError, UnicodeError):
         return stdin_value.decode("utf-8")
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/flake8-3.8.4/src/flake8.egg-info/PKG-INFO 
new/flake8-3.9.0/src/flake8.egg-info/PKG-INFO
--- old/flake8-3.8.4/src/flake8.egg-info/PKG-INFO       2020-10-03 
01:33:47.000000000 +0200
+++ new/flake8-3.9.0/src/flake8.egg-info/PKG-INFO       2021-03-15 
00:30:56.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: flake8
-Version: 3.8.4
+Version: 3.9.0
 Summary: the modular source code checker: pep8 pyflakes and co
 Home-page: https://gitlab.com/pycqa/flake8
 Author: Tarek Ziade
@@ -96,11 +96,11 @@
 Classifier: Programming Language :: Python :: 2
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
 Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
 Classifier: Topic :: Software Development :: Quality Assurance
-Requires-Python: !=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7
+Requires-Python: !=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/flake8-3.8.4/src/flake8.egg-info/SOURCES.txt 
new/flake8-3.9.0/src/flake8.egg-info/SOURCES.txt
--- old/flake8-3.8.4/src/flake8.egg-info/SOURCES.txt    2020-10-03 
01:33:47.000000000 +0200
+++ new/flake8-3.9.0/src/flake8.egg-info/SOURCES.txt    2021-03-15 
00:30:56.000000000 +0100
@@ -93,6 +93,7 @@
 docs/source/release-notes/3.8.2.rst
 docs/source/release-notes/3.8.3.rst
 docs/source/release-notes/3.8.4.rst
+docs/source/release-notes/3.9.0.rst
 docs/source/release-notes/index.rst
 docs/source/user/configuration.rst
 docs/source/user/error-codes.rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/flake8-3.8.4/src/flake8.egg-info/requires.txt 
new/flake8-3.9.0/src/flake8.egg-info/requires.txt
--- old/flake8-3.8.4/src/flake8.egg-info/requires.txt   2020-10-03 
01:33:47.000000000 +0200
+++ new/flake8-3.9.0/src/flake8.egg-info/requires.txt   2021-03-15 
00:30:56.000000000 +0100
@@ -1,5 +1,5 @@
-pyflakes<2.3.0,>=2.2.0
-pycodestyle<2.7.0,>=2.6.0a1
+pyflakes<2.4.0,>=2.3.0
+pycodestyle<2.8.0,>=2.7.0
 mccabe<0.7.0,>=0.6.0
 
 [:python_version < "3.2"]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/flake8-3.8.4/tests/integration/test_main.py 
new/flake8-3.9.0/tests/integration/test_main.py
--- old/flake8-3.8.4/tests/integration/test_main.py     2020-10-03 
01:13:01.000000000 +0200
+++ new/flake8-3.9.0/tests/integration/test_main.py     2021-03-14 
23:48:47.000000000 +0100
@@ -108,6 +108,31 @@
     assert err == ''
 
 
+def test_show_source_option(tmpdir, capsys):
+    """Ensure that --show-source and --no-show-source work."""
+    with tmpdir.as_cwd():
+        tmpdir.join('tox.ini').write('[flake8]\nshow_source = true\n')
+        tmpdir.join('t.py').write('import os\n')
+        _call_main(['t.py'], retv=1)
+
+    out, err = capsys.readouterr()
+    assert out == '''\
+t.py:1:1: F401 'os' imported but unused
+import os
+^
+'''
+    assert err == ''
+
+    with tmpdir.as_cwd():
+        _call_main(['t.py', '--no-show-source'], retv=1)
+
+    out, err = capsys.readouterr()
+    assert out == '''\
+t.py:1:1: F401 'os' imported but unused
+'''
+    assert err == ''
+
+
 def test_extend_exclude(tmpdir, capsys):
     """Ensure that `flake8 --extend-exclude` works."""
     for d in ['project', 'vendor', 'legacy', '.git', '.tox', '.hg']:
@@ -227,7 +252,6 @@
 '''
 
 
[email protected](strict=True)  # currently awaiting fix in pycodestyle
 def test_physical_line_file_not_ending_in_newline_trailing_ws(tmpdir, capsys):
     """See https://github.com/PyCQA/pycodestyle/issues/960.""";
     t_py_src = 'x = 1   '
@@ -239,7 +263,7 @@
     out, err = capsys.readouterr()
     assert out == '''\
 t.py:1:6: W291 trailing whitespace
-t.py:1:10: W292 no newline at end of file
+t.py:1:9: W292 no newline at end of file
 '''
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/flake8-3.8.4/tests/unit/conftest.py 
new/flake8-3.9.0/tests/unit/conftest.py
--- old/flake8-3.8.4/tests/unit/conftest.py     2020-10-03 01:13:01.000000000 
+0200
+++ new/flake8-3.9.0/tests/unit/conftest.py     2021-03-14 23:48:47.000000000 
+0100
@@ -9,6 +9,7 @@
     kwargs.setdefault('hang_closing', True)
     kwargs.setdefault('max_line_length', 79)
     kwargs.setdefault('max_doc_length', None)
+    kwargs.setdefault('indent_size', 4)
     kwargs.setdefault('verbose', False)
     kwargs.setdefault('stdin_display_name', 'stdin')
     kwargs.setdefault('disable_noqa', False)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/flake8-3.8.4/tests/unit/test_legacy_api.py 
new/flake8-3.9.0/tests/unit/test_legacy_api.py
--- old/flake8-3.8.4/tests/unit/test_legacy_api.py      2020-10-03 
01:13:01.000000000 +0200
+++ new/flake8-3.9.0/tests/unit/test_legacy_api.py      2021-03-14 
23:48:47.000000000 +0100
@@ -1,5 +1,6 @@
 """Tests for Flake8's legacy API."""
 import argparse
+import os.path
 
 import mock
 import pytest
@@ -91,12 +92,13 @@
     """
     app = mock.Mock()
     file_checker_manager = app.file_checker_manager = mock.Mock()
+    file_checker_manager.is_path_excluded.return_value = False
     style_guide = api.StyleGuide(app)
 
     style_guide.excluded('file.py', 'parent')
-    file_checker_manager.is_path_excluded.call_args == [
-        ('file.py',),
-        ('parent/file.py',),
+    assert file_checker_manager.is_path_excluded.call_args_list == [
+        mock.call('file.py'),
+        mock.call(os.path.join('parent', 'file.py')),
     ]
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/flake8-3.8.4/tests/unit/test_utils.py 
new/flake8-3.9.0/tests/unit/test_utils.py
--- old/flake8-3.8.4/tests/unit/test_utils.py   2020-10-03 01:13:01.000000000 
+0200
+++ new/flake8-3.9.0/tests/unit/test_utils.py   2021-03-14 23:48:47.000000000 
+0100
@@ -1,6 +1,8 @@
 """Tests for flake8's utils module."""
+import io
 import logging
 import os
+import sys
 
 import mock
 import pytest
@@ -304,3 +306,11 @@
     logger = logging.Logger(__name__)
     assert not utils.matches_filename('.', ('.*',), '', logger)
     assert not utils.matches_filename('..', ('.*',), '', logger)
+
+
[email protected](sys.version_info < (3,), reason='py3+ only behaviour')
+def test_stdin_get_value_crlf():
+    """Ensure that stdin is normalized from crlf to lf."""
+    stdin = io.TextIOWrapper(io.BytesIO(b'1\r\n2\r\n'), 'UTF-8')
+    with mock.patch.object(sys, 'stdin', stdin):
+        assert utils.stdin_get_value.__wrapped__() == '1\n2\n'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/flake8-3.8.4/tox.ini new/flake8-3.9.0/tox.ini
--- old/flake8-3.8.4/tox.ini    2020-10-03 01:13:01.000000000 +0200
+++ new/flake8-3.9.0/tox.ini    2021-03-14 23:48:47.000000000 +0100
@@ -1,6 +1,6 @@
 [tox]
 minversion=2.3.1
-envlist = py27,py34,py35,py36,py37,py38,flake8,linters,docs
+envlist = py27,py35,py36,py37,py38,flake8,linters,docs
 
 [testenv]
 deps =
@@ -25,7 +25,6 @@
 skip_install = true
 deps =
     wheel
-    flake8-colors
 commands =
     python setup.py -qq bdist_wheel
     pip install --force-reinstall -U --pre --find-links ./dist/ flake8
@@ -39,7 +38,6 @@
 deps =
     flake8
     flake8-bugbear
-    flake8-colors
     flake8-docstrings>=1.3.1
     flake8-import-order>=0.9
     flake8-typing-imports>=1.1
@@ -163,4 +161,3 @@
 max-complexity = 10
 import-order-style = google
 application-import-names = flake8
-format = 
${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}:
 ${red_bold}%(code)s${reset} %(text)s

Reply via email to