{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/13"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/2"},{"label":"Documentation","url":"https://skillfed.io/packages/category/software-development-documentation"}],"enrichment":{"capability":"A flake8 extension that detects overly complex expressions in Python code and reports them as style violations, with configurable thresholds and optional Django ORM query exemption.","skillfed_tags":["linter","flake8-plugin","code-quality"],"use_cases":["Enforce a team code-style rule that flags overly complex conditional expressions in pull request reviews.","Automatically detect and refactor deeply nested boolean logic in legacy codebases.","Configure stricter complexity thresholds in critical modules while relaxing them in Django query-heavy code.","Integrate into CI/CD pipelines to prevent commits with expressions exceeding a project's complexity budget.","Identify readability hotspots in conditional chains that would benefit from helper functions or intermediate variables."],"what_it_does":"flake8-expression-complexity is a linter plugin that automatically flags expressions in your Python code that exceed a complexity threshold. It integrates directly into flake8's workflow, scoring each expression and raising an ECE001 error when complexity exceeds the configured limit (default 7). This helps catch hard-to-read conditional chains, nested operations, and other expressions that may reduce code maintainability.\n\nThe tool is particularly useful in Django projects, where ORM queries can produce long but readable expressions; you can optionally exclude those from complexity checks via a command-line flag. Configuration is straightforward through flake8's standard `--max-expression-complexity` option. The package is actively maintained, supports Python 3.10 through 3.14, and carries no known security vulnerabilities.","worth_installing":"Yes. This is a lightweight, well-maintained linter plugin with no security issues, permissive licensing, and a clear, narrow purpose. Install it if your team values expression readability and wants automated enforcement; the low friction and active maintenance make it a safe addition to any flake8 setup. Skip it only if your codebase already has strong code-review discipline around complexity or if you prefer other linting approaches."},"id":"flake8-expression-complexity","links":{"html":"https://skillfed.io/packages/flake8-expression-complexity","md":"https://skillfed.io/packages/flake8-expression-complexity.md","pypi":"https://pypi.org/project/flake8-expression-complexity/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-14","license_spdx":"MIT","license_treatment":"permissive","name":"flake8-expression-complexity","python_support":"supports_current","summary":"A flake8 extension that checks expressions complexity"},"popularity":{"monthly_downloads":341486,"position":7402,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.1.1"}
