Flake8 plugin that checks return values
Project description
flake8-return
Flake8 plugin that checks return values.
Installation
pip install flake8-return
Errors
- R501 you shouldn`t add None at any return if function havn`t return value except None
- R502 you should add explicit value at every return if function have return value except None
- R503 you should add explicit return at end of the function if function have return value except None
License
MIT
Change Log
0.2.0 - 2019.02.21
- fix explicit/implicit
- add flake8-plugin-utils as dependency
- allow raise as last function return
- allow no return as last line in while block
- fix if/elif/else cases
0.1.1 - 2019.02.10
- fix error messages
0.1.0 - 2019.02.10
- initial
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flake8-return-0.2.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for flake8_return-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f50f6976bbb1696c1089db9d72ee4935cebd10eecbb8160ff0d77cf1b714c438 |
|
MD5 | 890d494fcf5f3f1c9294ec306154a389 |
|
BLAKE2b-256 | 878c922ff805c92a7c99f89fec2bd95b16bfd5f8e41336bcc67b1f2c21cc394a |