Skip to main content

A plugin for flake8 finding likely bugs and design problems in your program. Contains warnings that don't belong in pyflakes and pep8.

Reason this release was yanked:

https://github.com/PyCQA/flake8-bugbear/issues/272

Project description

A plugin for flake8 finding likely bugs and design problems in your program. Contains warnings that don’t belong in pyflakes and pep8:

bug·bear  (bŭg′bâr′)
n.
1. A cause of fear, anxiety, or irritation: *Overcrowding is often
   a bugbear for train commuters.*
2. A difficult or persistent problem: *"One of the major bugbears of
   traditional AI is the difficulty of programming computers to
   recognize that different but similar objects are instances of the
   same type of thing" (Jack Copeland).*
3. A fearsome imaginary creature, especially one evoked to frighten
   children.

List of warnings

B001

Do not use bare except:, it also catches unexpected events “ “like memory errors, interrupts, system exit, and so on. Prefer except Exception:. If you’re sure what you’re doing, be explicit and write except BaseException:.

Tests

Just run:

python setup.py test

License

MIT

Change Log

16.4.0

  • first published version

  • date-versioned

Authors

Glued together by Łukasz Langa.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flake8-bugbear-16.4.0.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file flake8-bugbear-16.4.0.tar.gz.

File metadata

File hashes

Hashes for flake8-bugbear-16.4.0.tar.gz
Algorithm Hash digest
SHA256 f2f7bb101875a6964f173691b8e96da29020a6fe3d613b06364b78d906e686bd
MD5 2b759dde842d90452dc6c9f0dee281c4
BLAKE2b-256 1db0719f4320ef805241d2c9de72d329630f79235048d6cff97f7447e382f14a

See more details on using hashes here.

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