wemake-python-styleguide – strict Python linting rules

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
RuffExtremely fast Python linter and code formatter
tyFast Python type checker
MypyStatic type checker for Python
BanditFind security issues in Python code
PylintStatic code analyser
wemake-python-styleguideFlake8 plugin
TachEnforces module dependencies and architectural boundaries
pycodestyleCheck Python code against style conventions in PEP 8
PyflakesChecks Python source files for errors
VultureFind dead code
PyreflyFast type checker and language server
Flake8Wrapper around PyFlakes and pycodestyle
BeartypeNear-real-time hybrid runtime-static type-checker
RadonComputes various metrics from Python code
PyrightFull-featured, standards-compliant static type checker
cython-lintLint Cython files
basedpyrightFork of pyright
RefurbModernize Python codebases
PylamaCode audit tool for Python
ProspectorBrings together the functionality of other Python analysis tools
deptryCheck for dependency issues
FixitHighly configurable linting framework
complexipyMeasures cognitive complexity in Python code
ZubanHigh-performance Python type checker and language server
PyromaRates how well a Python project compiles
pydoclintPython docstring linter
AridFast duplicate code detection for Python projects

Read our verdict in the software roundup.


Best Free and Open Source Software 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.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted