Skip to content

Commit 11f2bf2

Browse files
authored
stop testing flake8<7, remove now unneeded stub files (#375)
* stop testing flake8<7, remove now unneeded stub files * fix slow tests & noflake8
1 parent 041f0db commit 11f2bf2

File tree

6 files changed

+8
-347
lines changed

6 files changed

+8
-347
lines changed

.github/workflows/ci.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,10 @@ jobs:
4040
python-version: ${{ matrix.python-version }}
4141
- name: Install dependencies
4242
run: python -m pip install --upgrade pip setuptools tox
43-
- name: Run tests with flake8_6
44-
run: python -m tox -e flake8_6
45-
- name: Run tests with flake8_7+
46-
run: python -m tox -e flake8_7
43+
- name: Run tests with flake8
44+
run: python -m tox -e flake8
4745
- name: Run tests without flake8
48-
run: python -m tox -e noflake8 -- --no-cov
46+
run: python -m tox -e "" -- --no-cov
4947

5048
slow_tests:
5149
runs-on: ubuntu-latest
@@ -60,9 +58,9 @@ jobs:
6058
- name: Install dependencies
6159
run: |
6260
python -m pip install --upgrade pip setuptools tox
63-
python -m tox --notest --recreate -e flake8_7
61+
python -m tox --notest --recreate -e flake8
6462
- name: Run tests
65-
run: python -m tox -e flake8_7 -- --onlyfuzz --no-cov -n auto
63+
run: python -m tox -e flake8 -- --onlyfuzz --no-cov -n auto
6664

6765
check_release:
6866
runs-on: ubuntu-latest

tox.ini

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# The test environment and commands
22
[tox]
33
# default environments to run without `-e`
4-
envlist = py{39,310,311,312,313}-{flake8_6,flake8_7},noflake8
4+
# trailing comma gives the empty environ - i.e. no flake8 default python
5+
envlist = py{39,310,311,312,313}-{flake8},
56

67
# create a default testenv, whose behaviour will depend on the name it's called with.
78
# for CI you can call with `-e flake8_6,flake8_7` and let the CI handle python version
89
[testenv]
910
description = Runs pytest, optionally with posargs
1011
deps =
11-
flake8_7: flake8>=7.0
12-
flake8_6: flake8>=6.0, <7.0
12+
flake8: flake8
1313
pytest
1414
pytest-cov # to make it easy to pass --no-cov
1515
coverage

typings/flake8/__init__.pyi

-37
This file was deleted.

typings/flake8/main/application.pyi

-77
This file was deleted.

typings/flake8/main/cli.pyi

-18
This file was deleted.

typings/flake8/options/manager.pyi

-205
This file was deleted.

0 commit comments

Comments
 (0)