Skip to content

Commit

Permalink
flake8 4.x compat
Browse files Browse the repository at this point in the history
  • Loading branch information
g-as committed Oct 11, 2021
1 parent db179e2 commit c82e6f9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
25 changes: 20 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,34 @@ python:
- 'pypy'
- 'pypy3'
env:
- ISORT_VER="4"
- ISORT_VER="5"
- ISORT_VER="4" FLAKE8_VER="3"
- ISORT_VER="5" FLAKE8_VER="3"
- ISORT_VER="4" FLAKE8_VER="4"
- ISORT_VER="5" FLAKE8_VER="4"
jobs:
exclude:
- python: "2.7"
env: ISORT_VER="5"
env: ISORT_VER="5" FLAKE8_VER="3"
- python: "2.7"
env: ISORT_VER="5" FLAKE8_VER="4"
- python: "2.7"
env: ISORT_VER="4" FLAKE8_VER="4"
- python: "3.5"
env: ISORT_VER="5" FLAKE8_VER="3"
- python: "3.5"
env: ISORT_VER="5"
env: ISORT_VER="5" FLAKE8_VER="4"
- python: "3.5"
env: ISORT_VER="4" FLAKE8_VER="4"
- python: "pypy"
env: ISORT_VER="5" FLAKE8_VER="3"
- python: "pypy"
env: ISORT_VER="5" FLAKE8_VER="4"
- python: "pypy"
env: ISORT_VER="5"
env: ISORT_VER="4" FLAKE8_VER="4"
cache: pip
install:
- if [[ $ISORT_VER == "4" ]]; then pip install 'isort < 5'; fi
- if [[ $FLAKE8_VER == "3" ]]; then pip install 'flake8 < 4'; fi
- pip install .[test]
script:
- flake8 *.py
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def get_version(file="flake8_isort.py"):
test_suite='run_tests',
zip_safe=False,
install_requires=[
'flake8 >= 3.2.1, <4',
'flake8 >= 3.2.1, <5',
'isort >= 4.3.5, <6',
'testfixtures >= 6.8.0, <7',
],
Expand Down

0 comments on commit c82e6f9

Please sign in to comment.