flake8 plugin with checks for the Flask framework, by r2c
Project description
flake8-flask
flake8-flask is a plugin for flake8 with checks specifically for the flask framework, written by r2c
Installation
pip install flake8-flask
Validate the install using --version
.
> flake8 --version
3.7.9 (flake8-flask: 0.1.5, mccabe: 0.6.1, pycodestyle: 2.5.0, pyflakes: 2.1.1)
List of warnings
r2c-need-filename-or-mimetype-for-file-objects-in-send-file
: This check detects the use of a file-like object in flask.send_file
without either mimetype
or attachment_filename
keyword arguments. send_file
will throw a ValueError in this situation.
r2c-secure-set-cookie
: This check detects calls to response.set_cookie
that do not have secure
, httponly
, and samesite
set. This follows the guidance in the Flask documentation.
Have an idea for a check? Reach out to us at https://r2c.dev!
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 Distributions
Built Distribution
Hashes for flake8_flask-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b295e7446bd84b897147d8da67703c427b2f65297c93886b3dd2a06860fb3ef6 |
|
MD5 | c3058438858edb3b1cfd8e460ffb8fea |
|
BLAKE2b-256 | 844d7f1e7da98be0cb423a437fa9d234c35c1fcae199b756e5bb18c1c81338ff |