Skip to content

Commit c82e6f9

Browse files
committed
flake8 4.x compat
1 parent db179e2 commit c82e6f9

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

.travis.yml

+20-5
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,34 @@ python:
99
- 'pypy'
1010
- 'pypy3'
1111
env:
12-
- ISORT_VER="4"
13-
- ISORT_VER="5"
12+
- ISORT_VER="4" FLAKE8_VER="3"
13+
- ISORT_VER="5" FLAKE8_VER="3"
14+
- ISORT_VER="4" FLAKE8_VER="4"
15+
- ISORT_VER="5" FLAKE8_VER="4"
1416
jobs:
1517
exclude:
1618
- python: "2.7"
17-
env: ISORT_VER="5"
19+
env: ISORT_VER="5" FLAKE8_VER="3"
20+
- python: "2.7"
21+
env: ISORT_VER="5" FLAKE8_VER="4"
22+
- python: "2.7"
23+
env: ISORT_VER="4" FLAKE8_VER="4"
24+
- python: "3.5"
25+
env: ISORT_VER="5" FLAKE8_VER="3"
1826
- python: "3.5"
19-
env: ISORT_VER="5"
27+
env: ISORT_VER="5" FLAKE8_VER="4"
28+
- python: "3.5"
29+
env: ISORT_VER="4" FLAKE8_VER="4"
30+
- python: "pypy"
31+
env: ISORT_VER="5" FLAKE8_VER="3"
32+
- python: "pypy"
33+
env: ISORT_VER="5" FLAKE8_VER="4"
2034
- python: "pypy"
21-
env: ISORT_VER="5"
35+
env: ISORT_VER="4" FLAKE8_VER="4"
2236
cache: pip
2337
install:
2438
- if [[ $ISORT_VER == "4" ]]; then pip install 'isort < 5'; fi
39+
- if [[ $FLAKE8_VER == "3" ]]; then pip install 'flake8 < 4'; fi
2540
- pip install .[test]
2641
script:
2742
- flake8 *.py

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def get_version(file="flake8_isort.py"):
5656
test_suite='run_tests',
5757
zip_safe=False,
5858
install_requires=[
59-
'flake8 >= 3.2.1, <4',
59+
'flake8 >= 3.2.1, <5',
6060
'isort >= 4.3.5, <6',
6161
'testfixtures >= 6.8.0, <7',
6262
],

0 commit comments

Comments
 (0)