Skip to main content

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


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 Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page