Metadata-Version: 2.1
Name: flake8-peewee
Version: 0.1.0
Summary: flake8 plugin which checks for peewee usage syntax error
Home-page: https://github.com/Zioyi/flake8-peewee
Author: Zioyi
Author-email: newsunstudy@163.com
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.6.1
Description-Content-Type: text/markdown
Requires-Dist: flake8 (>=3.7)
Requires-Dist: importlib-metadata (>=0.9) ; python_version < "3.8"

flake8-peewee
=============
flake8 plugin which checks for peewee syntax error.

for example:
```python
# 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 |


