python-rope / ropevim

vim mode that uses rope library to provide features like python refactorings and code-assists
GNU General Public License v2.0
245 stars 34 forks source link

Refactor for testing and introduce pytest workflow #96

Closed eivindjahren closed 3 months ago

eivindjahren commented 1 year ago

This is admittedly a big PR, and I appologize.

I wanted to do the same change of setup as in https://github.com/python-rope/ropemode/pull/21 where pytest and github actions are introduced. However, ropevim do have any tests (!) so I started refactoring the code in order to be able to test it. It ended up being a rather large refactoring.

Because ftplugin is changed, there will have to be a release to pypi rather quickly after merging the PR. This is because plugin managers fetch from main so anyone attempting to install ropevim will have incompatible versions until they run pip install --upgrade ropevim. I have therefore taken the liberty of bumping the version and creating an error message to help people upgrade the ropevim pip package.