Skip to content

danie1k/python-flake8-if-checker

Repository files navigation

Build Status Code Coverage PyPI - Python Version PyPI MIT License Automatic PyPI Release

flake8-if-checker

Flake8's IF statement complexity linter plugin.

Table of Contents

  1. About the Project
  2. Installation
  3. Configuration
  4. Known issues
  5. License

About the Project

This plugins adds one new flake8 warning.

IF01 Too many conditions in IF/ELIF Statement/Expression.

Installation

pip install flake8-if-checker

Configuration

If using the select option from flake8 be sure to enable the IF category as well.

Known issues

  • In Python 3.8 does not work with flake8 < 3.8
  • Does not work with Python 3.9

License

MIT