Metadata-Version: 2.1
Name: flake8-simplify
Version: 0.1.0
Summary: flake8 plugin which checks for code that can be simpified
Home-page: https://github.com/MartinThoma/flake8-simplify
Author: Martin Thoma
Author-email: info@martin-thoma.de
License: MIT
Description: [![PyPI version](https://badge.fury.io/py/flake8-simplify.svg)](https://badge.fury.io/py/flake8-simplify)
        [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
        
        # flake8-simplify
        
        A [flake8](https://flake8.pycqa.org/en/latest/index.html) plugin that helps you simplify your code.
        
        ## Installation
        
        Install with `pip`:
        
        ```
        pip install flake8-simplify
        ```
        
        Python 3.6 to 3.8 are supported.
        
        
        ## Usage
        
        Just call `flake8 .` in your package or `flake your.py`:
        
        ```
        $ flake8 .
        ./foo/__init__.py:690:12: SIM101 Multiple isinstance-calls which can be merged into a single call for variable 'other'
        ```
        
        
        ## Rules
        
        * `SIM101`: Multiple isinstance-calls which can be merged into a single call by
          using a tuple as a second argument.
        
        
        ## Examples
        
        ### SIM101
        
        ```python
        # Bad
        isinstance(a, int) or isinstance(a, float)
        
        # Good
        isinstance(a, (int, float))
        ```
        
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.6.1
Description-Content-Type: text/markdown
