New features
- Added a [pytest plugin](https://libtmux.git-pull.com/pytest-plugin.html), #411.
Breaking changes
- Remove `common.which()` in favor of {func}`shutil.which`, Credit:
rocksandska, via 407
- Fixes 402: {func}`common.tmux_cmd` will only strip _trailing_ empty lines. Before this change,
all empty lines were filtered out. This will lead to a more accurate behavior when using
{meth}`Pane.capture_pane`. Credit: rockandska, via 405.
- Source files for `libtmux` modules moved to `src/`, via 414.
Development
- Add [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) (#408)
- Add [flake8-comprehensions](https://github.com/adamchainz/flake8-comprehensions) (#409)
Tests
- Test doctests in documentation via
[pytest-doctest-docutils](https://gp-libs.git-pull.com/doctest/pytest.html) (#410)
Documentation
- Examples updated for correctness, 412 (cherry-picked from 410)
- Render changelog in [linkify_issues](https://gp-libs.git-pull.com/linkify_issues/) (#410)
- Fix Table of contents rendering with sphinx autodoc with
[sphinx_toctree_autodoc_fix](https://gp-libs.git-pull.com/sphinx_toctree_autodoc_fix/) (#410)