flake8 plugin which checks for peewee usage syntax error
Project description
flake8-peewee
flake8 plugin which checks for peewee syntax error.
for example:
# User is peewee.Model
# we want to query all users who are younger than 20 years old
# this is correct usage:
users = User.select().where(User.age < 20)
# but we may carelessly write the following form:
users = User.select(User.age < 20)
# it will be catastrophic
so I want to use flake plugin mechanism help us check.
flake8 codes
Code | Description |
---|---|
PWE101 | select() inner comparison expression are not allowed |
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_peewee-0.1.0.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for flake8_peewee-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fbb47ccc54cbc3047efd9d78df4b6152504f853ab8f9aa328cd249764ad4a29 |
|
MD5 | 48fe18b840caeb6a9642aa8c615fb48a |
|
BLAKE2b-256 | d0106f114ebfce1d4b2f80e3d1a39ae13ac04f8f44006abdf3268ab99052222b |