Skip to main content

Warns about deprecated method calls.

Project description

https://travis-ci.org/gforcada/flake8-deprecated.svg?branch=master https://coveralls.io/repos/gforcada/flake8-deprecated/badge.svg?branch=master&service=github

Flake8 deprecations plugin

No language, library or framework ever get everything right from the very beginning. The project evolves, new features are added/changed/removed.

This means that projects relying on them must keep an eye on what’s currently best practices.

This flake8 plugin helps you keeping up with method deprecations ans giving hints about what they should be replaced with.

This plugin is based on a python checker that was in plone.recipe.codeanalysis.

Install

Install with pip:

$ pip install flake8-deprecated

Requirements

  • Python 2.7, 3.5, 3.6

  • flake8

TODO

  • add a way to provide more deprecations on a per user basis(?), other plugins(?)

  • add a way to ignore specific deprecations

License

GPL 2.0

Changelog

1.2 (2017-05-12)

  • added support for sublimetext (stdin/filename handling) [iham]

  • Release as universal wheels. [gforcada]

  • Only test against Python 2.7, 3.5 and 3.6. It most probably works on earlier versions of 2.x and 3.x but it’s pointless to test on them as well. [gforcada]

1.1 (2016-10-26)

  • Fix compatibility with flake8 3. [gforcada]

  • Require flake8 > 3.0. [gforcada]

1.0 (2016-02-27)

  • Warn if using xmlconfig.file, self.loadZCML is the preferred option. [gforcada]

  • Avoid false reports by suffixing an opening parenthesis on all methods. [gforcada]

  • Add decorators from zope.interface and zope.component. [gforcada]

0.2 (2016-01-20)

  • Suggest to use AccessControl and zope.interface decorators. [gforcada]

0.1 (2015-09-17)

  • Initial release [gforcada]

  • Create the flake8 plugin per se. [gforcada]

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-deprecated-1.2.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

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

flake8_deprecated-1.2-py2.py3-none-any.whl (5.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file flake8-deprecated-1.2.tar.gz.

File metadata

File hashes

Hashes for flake8-deprecated-1.2.tar.gz
Algorithm Hash digest
SHA256 a4654ef6b8fb2930569d7eadb86bce2bd929a6339302edc4ce419750c0122987
MD5 755ed96a8fc515b89e1d79ec5796a6cf
BLAKE2b-256 54520ef0ad8f5a5b1d4f9e61b8d19481c7377123bd0c4fef2e70537eeae86949

See more details on using hashes here.

File details

Details for the file flake8_deprecated-1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for flake8_deprecated-1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 63397277676840382632f5e7d1ee2f62ba86085ea43982213fef12f7f1a4311a
MD5 927aa91d353e0b5ae306328c5fdc63b0
BLAKE2b-256 897014a5f11778435db661227c939bb9d24a73e2b92416b6a099f11478c4d511

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