{"repo":"MartinThoma/flake8-simplify","free":true,"listed":false,"github":"https://github.com/MartinThoma/flake8-simplify","clone":"git clone https://github.com/MartinThoma/flake8-simplify.git","description":"❄ A flake8 plugin that helps you to simplify code","language":"Python","stars":193,"topics":["flake8","flake8-plugin","flake8-extensions","python","python3","python-style","linter","code-quality"],"license":"MIT","category":"dev-tools","readme_excerpt":"flake8-simplify A flake8 plugin that helps you simplify your code. Installation Install with pip : Python 3.9 to 3.14 are supported. Usage Just call flake8 . in your package or flake your.py : Rules Python-specific rules: SIM101 : Multiple isinstance-calls which can be merged into a single call by using a tuple as a second argument (example) SIM104 : Use 'yield from iterable' (introduced in Python 3.3, see PEP 380) (example) SIM105 : Use 'contextlib.suppress(...)' instead of try-except-pass (example) SIM107 : Don't use return in try/except and finally (example) SIM108 : Use the ternary operator if it's reasonable (example) SIM109 : Use a tuple to compare a value against multiple values (example) SIM110 : Use any(...) (example) SIM111 : Use all(...) (example) SIM113 : Use enumerate instead of manually incrementing a counter (example) SIM114 : Combine conditions via a logical or to prevent duplicating code (example) SIM115 : Use context handler for opening files (example) SIM116 : Use a dictionary instead of many if/else equality checks (example) SIM117 : Merge with-statements that use the same scope (example) SIM119 : Moved to flake8-scream due to issue 63 SIM120 : Use 'class FooBar:' instead of 'class FooBar(object):' (example) SIM121 : Reserved for SIM908 once it's stable SIM125 : Reserved for SIM905 once it's stable SIM126 : Reserved for SIM906 once it's stable SIM127 : Reserved for SIM907 once it's stable Simplifying Comparisons: SIM201 : Use 'a != b' instead of 'not a == ","default_branch":null,"files":null,"tree":[],"storefront":"/r/MartinThoma","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/MartinThoma/flake8-simplify/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}