{"categories":[{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/2"}],"enrichment":{"capability":"Provides base classes and utilities for writing flake8 plugins, including Error, Visitor, and Plugin abstractions with built-in testing helpers and AST node utilities.","skillfed_tags":["flake8-plugin","ast-utilities","code-linting"],"use_cases":["Build a custom flake8 plugin to enforce project-specific code style or naming conventions","Create a linter plugin that detects anti-patterns or problematic code structures in your codebase","Write a flake8 plugin that checks for security issues or compliance violations in Python code","Test your flake8 plugin rules with pytest using the built-in assert_error and assert_not_error helpers","Develop a plugin that requires configuration options, using the config system to parameterize checks"],"what_it_does":"flake8-plugin-utils is a framework for building flake8 linter plugins. It provides base classes (Error, Visitor, Plugin) that abstract away boilerplate code needed to integrate with flake8's plugin system, letting you focus on the AST traversal logic. The package includes testing utilities (assert_error, assert_not_error) to validate your plugin rules, configuration support for parameterizing plugin behavior, and helper functions for common AST operations like checking node equivalence and identifying literal values.\n\nThe package is designed for developers writing custom flake8 checkers. You define error types, implement visitor methods to detect violations, and the framework handles registration with flake8 and option parsing. It supports type-safe configuration through generics and includes utilities for comparing AST nodes, which is useful when your rules need to detect duplicate or equivalent code patterns.","worth_installing":"Yes, if you are writing a flake8 plugin. The package significantly reduces boilerplate and provides a clean API for plugin development. Dormant maintenance is acceptable here because the API is stable and unlikely to need frequent updates; flake8's plugin interface changes rarely. No known vulnerabilities. Low install friction and permissive license add no friction."},"id":"flake8-plugin-utils","links":{"html":"https://skillfed.io/packages/flake8-plugin-utils","md":"https://skillfed.io/packages/flake8-plugin-utils.md","pypi":"https://pypi.org/project/flake8-plugin-utils/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-06-26","license_spdx":null,"license_treatment":"permissive","name":"flake8-plugin-utils","python_support":"supports_current","summary":"The package provides base classes and utils for flake8 plugin writing"},"popularity":{"monthly_downloads":961264,"position":4634,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.3.3"}
