Skip to main content

flake8 plugin which checks for peewee usage syntax error

Project description


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 = < 20)

# but we may carelessly write the following form:
users = < 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

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)

Uploaded source

Built Distribution

flake8_peewee-0.1.0-py2.py3-none-any.whl (3.4 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page