Skip to content

Commit d24b8d4

Browse files
committed
We don't currently use flake8
pytest-flake8 is causing CI to fail with Python 3.12 with pluggy._manager.PluginValidationError: Plugin 'flake8' for hook 'pytest_collect_file' hookimpl definition: pytest_collect_file(file_path, path, parent) Argument(s) {'path'} are declared in the hookimpl but can not be found in the hookspec Since we don't use flake8, just remove this.
1 parent 362c792 commit d24b8d4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

support/setup_ci.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,4 @@ conda create --yes -q -n python${python_version} -c salilab python=${python_vers
3232
eval "$(conda shell.bash hook)"
3333
conda activate python${python_version}
3434

35-
if [ ${python_version} = "2.7" ]; then
36-
# pytest-flake8 1.1.0 tries to import contextlib.redirect_stdout, which
37-
# isn't present in Python 2
38-
pip install pytest-cov coverage 'pytest-flake8<1.1'
39-
else
40-
pip install pytest-cov coverage pytest-flake8
41-
fi
35+
pip install pytest-cov coverage

0 commit comments

Comments
 (0)