forked from pool/python-flake8
Accepting request 671477 from home:alarrosa:branches:devel:languages:python
- Update to version 3.7.5:
* Bugs Fixed
+ Fix reporting of pyflakes "referenced before assignment" error
(See also GitLab!301, GitLab#503)
- Update to version 3.7.4:
* Bugs Fixed
+ Fix performance regression with lots of per-file-ignores and errors
(See also GitLab!299, GitLab#501)
- Update to version 3.7.3:
* Bugs Fixed
+ Fix imports of typing in python 3.5.0 / 3.5.1 (See also GitLab!294,
GitLab#498)
+ Fix flake8 --statistics (See also GitLab!295, GitLab#499)
+ Gracefully ignore flake8-per-file-ignores plugin if installed
(See also GitLab!297, GitLab#495)
+ Improve error message for malformed per-file-ignores
(See also GitLab!298, GitLab#489)
- Update to version 3.7.2:
* Bugs Fixed
+ Fix broken flake8 --diff (regressed in 3.7.0) (See also GitLab!292,
GitLab#490)
+ Fix typo in plugin exception reporting (See also GitLab!275, GitLab#491)
+ Fix AttributeError while attempting to use the legacy api
(regressed in 3.7.0) (See also GitLab!293, GitLab#497)
- Update to version 3.7.1:
* Bugs Fixed
+ Fix capitalized filenames in per-file-ignores setting (See also GitLab!290, GitLab#488)
- Update to version 3.7.0:
* New Dependency Information
+ Add dependency on entrypoints >= 0.3, < 0.4
OBS-URL: https://build.opensuse.org/request/show/671477
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8?expand=0&rev=44
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
+ import mock
|
||||
import pytest
|
||||
|
||||
from flake8 import exceptions
|
||||
from flake8.main import application as app
|
||||
--- a/tests/unit/test_base_formatter.py
|
||||
+++ b/tests/unit/test_base_formatter.py
|
||||
@@ -1,7 +1,10 @@
|
||||
@@ -68,16 +68,17 @@
|
||||
from flake8.options import config
|
||||
--- a/tests/unit/test_debug.py
|
||||
+++ b/tests/unit/test_debug.py
|
||||
@@ -1,5 +1,8 @@
|
||||
@@ -1,6 +1,9 @@
|
||||
"""Tests for our debugging module."""
|
||||
import entrypoints
|
||||
-import mock
|
||||
+try:
|
||||
+ import unittest.mock as mock
|
||||
+except ImportError:
|
||||
+ import mock
|
||||
import pytest
|
||||
import setuptools
|
||||
|
||||
from flake8.main import debug
|
||||
--- a/tests/unit/test_file_checker.py
|
||||
+++ b/tests/unit/test_file_checker.py
|
||||
@@ -1,5 +1,8 @@
|
||||
@@ -87,14 +88,14 @@
|
||||
+ import unittest.mock as mock
|
||||
+except ImportError:
|
||||
+ import mock
|
||||
import pytest
|
||||
|
||||
from flake8 import checker
|
||||
|
||||
import flake8
|
||||
--- a/tests/unit/test_file_processor.py
|
||||
+++ b/tests/unit/test_file_processor.py
|
||||
@@ -5,7 +5,10 @@ import tokenize
|
||||
|
||||
from flake8 import processor
|
||||
import ast
|
||||
import tokenize
|
||||
|
||||
-import mock
|
||||
+try:
|
||||
@@ -103,7 +104,7 @@
|
||||
+ import mock
|
||||
import pytest
|
||||
|
||||
|
||||
from flake8 import processor
|
||||
--- a/tests/unit/test_get_local_plugins.py
|
||||
+++ b/tests/unit/test_get_local_plugins.py
|
||||
@@ -1,5 +1,8 @@
|
||||
@@ -233,7 +234,7 @@
|
||||
+ import mock
|
||||
import pytest
|
||||
|
||||
from flake8 import style_guide
|
||||
from flake8 import statistics
|
||||
--- a/tests/unit/test_utils.py
|
||||
+++ b/tests/unit/test_utils.py
|
||||
@@ -1,7 +1,10 @@
|
||||
@@ -247,7 +248,7 @@
|
||||
+ import mock
|
||||
import pytest
|
||||
|
||||
from flake8 import utils
|
||||
from flake8 import exceptions
|
||||
--- a/tests/unit/test_violation.py
|
||||
+++ b/tests/unit/test_violation.py
|
||||
@@ -1,5 +1,8 @@
|
||||
@@ -262,17 +263,22 @@
|
||||
from flake8 import style_guide
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -11,8 +11,12 @@ sys.path.insert(0, os.path.join(os.path.
|
||||
@@ -11,6 +11,12 @@
|
||||
|
||||
import flake8
|
||||
|
||||
+PY2 = sys.version_info[0] == 2
|
||||
|
||||
-tests_require = ['mock >= 2.0.0', 'pytest']
|
||||
+tests_require = ['pytest']
|
||||
+
|
||||
+if PY2:
|
||||
+ tests_require.append('mock >= 2.0.0')
|
||||
+
|
||||
|
||||
# NOTE(sigmavirus24): When updating these requirements, update them in
|
||||
# setup.cfg as well.
|
||||
@@ -147,4 +153,5 @@
|
||||
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||
"Topic :: Software Development :: Quality Assurance",
|
||||
],
|
||||
+ tests_require=tests_require,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user