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.
Installation
pip install flake8-flask
Validate the install using --version
. flake8-flask adds two plugins, but this will be consolidated in a very near-future version. :)
> flake8 --version
3.7.9 (mccabe: 0.6.1, need-filename-or-mimetype-for-file-objects-in-send-file: 0.0.7, pycodestyle: 2.5.0, pyflakes: 2.1.1, secure-set-cookie: 0.0.2)
List of warnings
R2C202: 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.
R2C203: 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.
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
File details
Details for the file flake8_flask-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: flake8_flask-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.6.0 requests-toolbelt/0.8.0 tqdm/4.36.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48e60a1d94934e4649f85519a1c87a8474a522add68e1401eeabcc956634b9ed |
|
MD5 | 704d6040f07b1d87c5c15bdfaa380bc0 |
|
BLAKE2b-256 | b1dd9c5f866c0af2ced8369515960df0131357fd8f2375d8c328274be43af759 |