diff options
author | Peter Kolbus <peter.kolbus@garmin.com> | 2021-05-12 06:40:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-12 13:40:15 +0200 |
commit | 318f1afa9384742c3dd42daa4deb7d22c0b662e0 (patch) | |
tree | ecd007b43f1b61e813b87c4926dae1382ef4b0b9 /requirements_test_pre_commit.txt | |
parent | 9b268ecedb1c3dbfd24f5edb0c891266f988b87a (diff) | |
download | pylint-git-318f1afa9384742c3dd42daa4deb7d22c0b662e0.tar.gz |
Fix issues with Python 3.6.0 (#4446)
* tox: Enable testing python 3.6.0
The requirements_test.txt includes black, pre-commit, and pyupgrade
which are not compatible with Python 3.6.0. Add python_full_version
markers so that `tox -e py36` works with 3.6.0.
* Fix typing.Counter import for Python 3.6.0
typing.Counter was added in Python 3.6.1. In the strings checker,
guard the import with TYPE_CHECKING and use a type annotation comment
to fix usage with Python 3.6.0.
* Skip typing.NoReturn tests on Python < 3.6.2
typing.NoReturn was introduced in Python 3.6.2. Move the tests for
issue #4122 to a separate file and skip when Python is too old.
* Update ChangeLog and whatsnew
Diffstat (limited to 'requirements_test_pre_commit.txt')
-rw-r--r-- | requirements_test_pre_commit.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/requirements_test_pre_commit.txt b/requirements_test_pre_commit.txt index b75f36fc1..ec9a56b8c 100644 --- a/requirements_test_pre_commit.txt +++ b/requirements_test_pre_commit.txt @@ -1,7 +1,7 @@ autoflake==1.4 -black==21.5b1 +black==21.5b1;python_full_version>="3.6.2" flake8==3.9.2 isort==5.8.0 mypy==0.812 -pyupgrade==2.15.0 +pyupgrade==2.15.0;python_full_version>="3.6.1" black-disable-checker==1.0.1 |