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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

Details for the file flake8_peewee-0.1.0.tar.gz.

File metadata

  • Download URL: flake8_peewee-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.2

File hashes

Hashes for flake8_peewee-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4c19a1580f4f8b9da4399b39314ef949464c91ccb1ecb08d6b849ada6780d2a4
MD5 f7c8a56835d9c9ab606be575ed581fc7
BLAKE2b-256 3a32a371f59aa511325823438cd0f7761b5b905075de187ab576770c2aabadd3

See more details on using hashes here.

File details

Details for the file flake8_peewee-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: flake8_peewee-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.2

File hashes

Hashes for flake8_peewee-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6fbb47ccc54cbc3047efd9d78df4b6152504f853ab8f9aa328cd249764ad4a29
MD5 48fe18b840caeb6a9642aa8c615fb48a
BLAKE2b-256 d0106f114ebfce1d4b2f80e3d1a39ae13ac04f8f44006abdf3268ab99052222b

See more details on using hashes here.

Supported by

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