flake8-picky-parentheses
flake8 plugin to nitpick about parenthesis, brackets, and braces
Decision gist · record as of 2026-08-14
Yes. This is a low-friction, actively maintained flake8 plugin with no known vulnerabilities, permissive licensing, and clear error codes that let you tune enforcement to your team's preferences. Install it if your codebase would benefit from stricter parenthesis hygiene; disable the alignment checker (PAR1) if you find it too opinionated.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires flake8 to be installed; flake8 >= 5.0.0 is needed if you want to use the --require-plugins option.
- Low friction: pure Python wheel with only flake8 as a runtime dependency.
- Actively maintained as of 2026-01-10, with recent commits and no archived status.
License · maintenance · safety
Apache License 2.0 (permissive) — Apache License 2.0 is permissive; you can use this plugin freely in commercial and private projects with minimal restrictions.
last release 2026-01-10 (216 days) · last repo commit 2026-08-11 · 9 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 293,554 downloads/mo, #7,953 on PyPI
Alternatives
Verify before relying
pip install flake8-picky-parentheses
flake8 --select='PAR0,PAR1' '<path/to/code>'
# Or to disable the opinionated alignment checker:
flake8 --extend-ignore='PAR1' '<path/to/code>'- Whether the plugin's AST-based redundancy detection handles all edge cases in practice across real codebases.
- Performance impact when running on large projects with many files.
What it is and what it does
Picky Parentheses is a flake8 plugin that adds two independent checkers to your linting workflow. The first detects redundant parentheses, brackets, and braces—pairs that can be safely removed without changing code semantics—while respecting exceptions like tuple literals, operator precedence hints, and multi-line expressions. The second checker enforces opinionated alignment rules for these delimiters, flagging cases where opening and closing brackets don't align properly across lines.
The plugin uses Python's tokenize and ast modules to determine redundancy by attempting to remove each pair and verifying the code still compiles to the same AST. Both checkers emit distinct error codes (PAR0xx for redundancy, PAR1xx for alignment), so you can selectively enable or disable either one. It supports Python 3.7 through 3.14 and integrates directly into flake8's standard workflow.
Use it for
- Enforce consistent parenthesis style across a team codebase by catching unnecessary delimiters that clutter readability.
- Catch alignment mistakes in multi-line function calls, list literals, and conditional expressions during code review.
- Selectively enable only the redundancy checker (PAR0) if you prefer not to enforce the opinionated alignment rules.
- Identify tuple unpacking mistakes where parentheses are used incorrectly in assignment expressions.
- Maintain consistent bracket alignment in complex nested structures like comprehensions and dictionary definitions.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is a low-friction, actively maintained flake8 plugin with no known vulnerabilities, permissive licensing, and clear error codes that let you tune enforcement to your team's preferences. Install it if your codebase would benefit from stricter parenthesis hygiene; disable the alignment checker (PAR1) if you find it too opinionated.
Install
flake8-picky-parentheses on PyPI
Before you install
Low friction: pure Python wheel with only flake8 as a runtime dependency. Actively maintained as of 2026-01-10, with recent commits and no archived status.
Requires flake8 to be installed; flake8 >= 5.0.0 is needed if you want to use the --require-plugins option.
License in practice
Apache License 2.0 is permissive; you can use this plugin freely in commercial and private projects with minimal restrictions.
Quickstart
pip install flake8-picky-parentheses
flake8 --select='PAR0,PAR1' '<path/to/code>'
# Or to disable the opinionated alignment checker:
flake8 --extend-ignore='PAR1' '<path/to/code>'
Verify before relying
- Whether the plugin's AST-based redundancy detection handles all edge cases in practice across real codebases.
- Performance impact when running on large projects with many files.
Package facts
| License | Apache License 2.0 permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageflake8 |
| Maintenance | Actively maintained 216 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 293,554 / month, #7,953 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Environment :: ConsoleFramework :: Flake8Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: Quality Assurance |
Evidence: flake8_picky_parentheses-0.6.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “flake8 parentheses linter”
- flake8-picky-parenthesesA flake8 plugin that detects and reports redundant parentheses,…
- flake8-broken-lineA flake8 plugin that detects and forbids backslash line continuations…
- flake8-pytest-styleA flake8 plugin that detects and reports style inconsistencies and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also flake8-quotes · flake8-implicit-str-concat · flake8-commas · flake8 · flake8_simplify · wemake-python-styleguide · flake8-noqa · flake8-pie · flake8-broken-line · ioc-fanger