# flake8-return
[![pypi](https://badge.fury.io/py/flake8-return.svg)](https://pypi.org/project/flake8-return)
[![Python: 3.6+](https://img.shields.io/badge/Python-3.6+-blue.svg)](https://pypi.org/project/flake8-return)
[![Downloads](https://img.shields.io/pypi/dm/flake8-return.svg)](https://pypistats.org/packages/flake8-return)
[![Build Status](https://travis-ci.org/Afonasev/flake8-return.svg?branch=master)](https://travis-ci.org/Afonasev/flake8-return)
[![Code coverage](https://codecov.io/gh/afonasev/flake8-return/branch/master/graph/badge.svg)](https://codecov.io/gh/afonasev/flake8-return)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://en.wikipedia.org/wiki/MIT_License)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
Flake8 plugin that checks return values.
## Installation
```bash
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
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共6个文件
py:2个
license:1个
md:1个
资源分类:Python库 所属语言:Python 资源全名:flake8-return-0.2.0.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
flake8-return-0.2.0.tar.gz (6个子文件)
flake8-return-0.2.0
PKG-INFO 594B
pyproject.toml 816B
flake8_return
__init__.py 3KB
LICENSE 1KB
setup.py 2KB
README.md 2KB
共 6 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功