wemake-python-styleguide is a collection of opinionated Python linting rules distributed as a Flake8 plugin. It concentrates on coding practices that can make programs difficult to understand, modify or maintain.
The project encourages developers to favour straightforward implementations over unnecessarily complicated abstractions. Its rules examine naming conventions, control-flow structures, function design and other aspects of source code organisation that conventional style checking may not adequately address.
wemake-python-styleguide is designed to complement Ruff, which provides a broader collection of general-purpose linting rules and automatic fixes. It can be particularly valuable for teams that want stricter coding conventions and a consistent approach to controlling code complexity across multiple contributors.
This is free and open source software.
Key Features
- Provides an extensive collection of opinionated rules for Python code quality and maintainability.
- Checks for excessive nesting, complicated control flow and overly complex functions.
- Enforces naming conventions intended to discourage ambiguous or misleading identifiers.
- Identifies redundant expressions, unnecessary abstraction and potentially confusing language constructs.
- Detects problematic exception handling and other coding practices that may conceal errors.
- Allows checks to be selected, ignored or configured through the Flake8 interface.
- Can be used alongside Ruff to enforce additional rules not covered by a project’s Ruff configuration.
- Integrates with established Flake8-based editor and automated checking workflows.
Website: github.com/wemake-services/wemake-python-styleguide
Support:
Developer: wemake.services
License: MIT License
wemake-python-styleguide is written in Python. Learn Python with our recommended free books and free tutorials.
Related Software
| Python Linters | |
|---|---|
| Ruff | Extremely fast Python linter and code formatter |
| ty | Fast Python type checker |
| Mypy | Static type checker for Python |
| Bandit | Find security issues in Python code |
| Pylint | Static code analyser |
| wemake-python-styleguide | Flake8 plugin |
| Tach | Enforces module dependencies and architectural boundaries |
| pycodestyle | Check Python code against style conventions in PEP 8 |
| Pyflakes | Checks Python source files for errors |
| Vulture | Find dead code |
| Pyrefly | Fast type checker and language server |
| Flake8 | Wrapper around PyFlakes and pycodestyle |
| Beartype | Near-real-time hybrid runtime-static type-checker |
| Radon | Computes various metrics from Python code |
| Pyright | Full-featured, standards-compliant static type checker |
| cython-lint | Lint Cython files |
| basedpyright | Fork of pyright |
| Refurb | Modernize Python codebases |
| Pylama | Code audit tool for Python |
| Prospector | Brings together the functionality of other Python analysis tools |
| deptry | Check for dependency issues |
| Fixit | Highly configurable linting framework |
| complexipy | Measures cognitive complexity in Python code |
| Zuban | High-performance Python type checker and language server |
| Pyroma | Rates how well a Python project compiles |
| pydoclint | Python docstring linter |
| Arid | Fast duplicate code detection for Python projects |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.