A tool (and pre-commit hook) to statically some best practices for napari plugins
For background, read Best practices when developing napari plugins
See pre-commit for instructions on using pre-commit.
Sample .pre-commit-config.yaml
:
- repo: https://github.com/tlambert03/napari-plugin-checks
rev: v0.3.0
hooks:
- id: napari-plugin-checks
may break user environment if they use conda pyqt, or use pyside2
# bad setup.cfg
[options]
install_requires =
PyQt5
# good setup.cfg
[options]
install_requires =
qtpy
# bad
from PyQt5 import QtWidgets
# good
from qtpy import QtWidgets
- your plugin may not work depending on the environment