Flake8 linter for if statements
- IFS001: Use one liner so as not to repeat assignment to the same variable
e.g:
Bad:
if x == 1:
y = 10
else:
y = 11
Good:
y = 10 if x == 1 else 11
pip install flake8-if-statements
flake8 <your code>
make init
make precommit_install
make pretty lint test
make bump_major
make bump_minor
make bump_patch
MIT
- Changed IFSTMT to IFS to comply with flake8
- Remove python3.6 support
- initial