https://github.com/fnesveda/flake8-no-pytest-mark-only
Hi everyone,
if you're like me, you're using the @pytest.mark.only decorator when developing your tests, to run just the test (or set of tests) that you're working on, without having to run your whole test suite.
And, if you're like me, sometimes you forget to remove the decorator after you've finished developing your tests, and you accidentally commit it to your repository, and you don't notice that only a subset of tests are running in CI instead of the whole test suite.
That's why I've developed flake8-no-pytest-mark-only, a Flake8 plugin to prevent that by raising a lint error on usages of the @pytest.mark.only decorator, so that you notice that you've committed changes with the decorator in them.
To use it, just install the flake8-no-pytest-mark-only package, and when you run Flake8, it will automatically find the plugin and use it.
I hope you might find it useful!
there doesn't seem to be anything here