{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/8"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/2"}],"enrichment":{"capability":"A Flake8 plugin that lints Python type stub files (.pyi) with stub-specific rules and forward-reference support, enforcing typeshed style conventions.","skillfed_tags":["type-stubs","flake8-plugin","typeshed"],"use_cases":["Lint typeshed stub files in CI to enforce consistent style and catch type annotation errors before merging.","Validate custom .pyi stub files in a project's type stubs package without manual review of every file.","Catch forward-reference issues in stub files that would be missed by standard Flake8 and PyFlakes.","Enforce typeshed conventions in stub-heavy projects to maintain consistency across many .pyi files."],"what_it_does":"flake8-pyi is a Flake8 plugin designed specifically for linting Python type stub files (.pyi). It extends Flake8 to automatically include .pyi files in linting runs and modifies PyFlakes to handle forward references correctly\u2014a feature essential for stub files where types are declared but never executed. The plugin enforces typeshed's style guide through a set of stub-specific lint rules (prefixed with Y0) that catch patterns inappropriate for stub files.\n\nThe plugin is most useful in CI pipelines for projects that maintain type stubs, particularly typeshed itself. It runs on modern Python versions and has minimal dependencies. The documentation notes that running it in a dedicated CI environment is recommended to avoid conflicts with other Flake8 plugins that may flag issues irrelevant to stub files (like missing docstrings).","worth_installing":"Yes, if you maintain or contribute to type stub files (.pyi). The plugin is actively maintained, has no known vulnerabilities, and solves a real problem\u2014standard linters are not designed for stub files. Install in a dedicated CI environment to avoid conflicts with other Flake8 plugins. Not necessary for projects that do not use stub files."},"id":"flake8-pyi","links":{"html":"https://skillfed.io/packages/flake8-pyi","md":"https://skillfed.io/packages/flake8-pyi.md","pypi":"https://pypi.org/project/flake8-pyi/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-11","license_spdx":"MIT","license_treatment":"permissive","name":"flake8-pyi","python_support":"supports_current","summary":"A plugin for flake8 to enable linting .pyi stub files."},"popularity":{"monthly_downloads":995574,"position":4550,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"26.5.0"}
