Registry / testing / pysen-plugins

pysen-plugins

JSON →
library2025.12.3pypypiunverified

A collection of plugins for pysen, a Python code formatter and linter orchestrator. Version 2025.12.3 supports Python >=3.8. Plugins include import sorter, formatter wrappers (black, isort, autoflake), and lint plugin helpers. Released on a monthly cadence tied to pysen releases.

pip install pysen-plugins
INSTALL
IMPORT
SIG · PYSEN-PLUGINS
P
pysen-plugins
testingpythonv2025.12.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ImportSortPlugin
from pysen_plugins.customizable_builtins import ImportSortPlugin
from pysen_plugins.import_sort import ImportSortPlugin

Basic configuration of pysen-plugins for formatting with black and isort.

from pysen import Plugin, LintSetting, FormatSetting from pysen_plugins.black import BlackPlugin from pysen_plugins.isort import IsortPlugin from pysen_plugins.import_sort import ImportSortPlugin # Create plugins for a pysen project black_plugin = BlackPlugin() isort_plugin = IsortPlugin() import_sort_plugin = ImportSortPlugin() # Configure pysen settings (simplified) settings = Plugin.create_settings( base_dir=".", lint_settings=[LintSetting(name="black", plugin=black_plugin)], format_settings=[FormatSetting(name="isort", plugin=isort_plugin)], ) print("Plugins configured successfully")
pysen --version
Debug
Known issues
breakingVersion 2025.12.0 changed the import path for ImportSortPlugin from pysen_plugins.import_sort_plugin to pysen_plugins.import_sort.
fix
Update imports to use pysen_plugins.import_sort.ImportSortPlugin.
affects: >=2025.12.0
deprecatedDirect import from pysen_plugins (e.g., from pysen_plugins import ImportSortPlugin) is deprecated in favor of submodule imports.
fix
Use from pysen_plugins.import_sort import ImportSortPlugin.
affects: >=2025.12.0
gotchaPlugin configuration requires explicit use of LintSetting/FormatSetting with the plugin instance; omitting the plugin argument silently does nothing.
fix
Always pass plugin=<instance> when creating settings.
affects: all
Upgrade
Version history
2025.12.3latest on PyPI · released Dec 3, 2025
Audit
Dependencies
pysenrequiredCore runtime dependency; pysen-plugins provides plugins for pysen.
Agent activity
13 hits · last 30 days
node
12
Resources
pysen-plugins — pip install pysen-plugins · libregistry