ECMWFCode4Earth / ml_drought

Machine learning to better predict and understand drought. Moving github.com/ml-clim
https://ml-clim.github.io/drought-prediction/
90 stars 18 forks source link

pytest unable to find `flake8` #11

Closed tommylees112 closed 5 years ago

tommylees112 commented 5 years ago

My pytest is failing with the error message below.

It seems to be unable to find --flake8

(crp) chri4118@linux8:/soge-home/projects/crop_yield/ml_drought$ pytest
ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --flake8
  inifile: /soge-home/projects/crop_yield/ml_drought/pytest.ini
  rootdir: /soge-home/projects/crop_yield/ml_drought
tommylees112 commented 5 years ago

ANSWER:

You need to install pytest-flake8

conda install pytest-flake8 -c conda-forge