Skip to content

Zioyi/flake8-peewee

Repository files navigation

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() or delete() inner comparison expression are not allowed

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages