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.1 (2017-07-24)

  • Fix UnicodeDecodeError if system locale is not UTF-8. [sshishov]

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.1.tar.gz (12.3 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.1-py2.py3-none-any.whl (5.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for flake8-deprecated-1.2.1.tar.gz
Algorithm Hash digest
SHA256 5b47ec924423bf443b6751d8b0152366542475c441a908dbd469d1600361a1ec
MD5 a7150b85525034aed63ba85dba3a67e0
BLAKE2b-256 372d3424a5202288dae7485c49f15b25d5508c01dae0039869346a611158fee2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for flake8_deprecated-1.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a16b0b31967452d60fd49669b0342113518987121e02114a7ff401675ed310cf
MD5 20650bac8b7f9f6eb0b62698300441c9
BLAKE2b-256 287d9a60f3960f88e624affa9597860789f285d0eef5320f352d27cfbbae276f

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