Metadata-Version: 2.1
Name: flake8-deprecated
Version: 2.0.1
Summary: Warns about deprecated method calls.
Home-page: https://github.com/gforcada/flake8-deprecated
Author: Gil Forcada
Author-email: gil.gnome@gmail.com
License: GPL version 2
Keywords: pep8 flake8 deprecations
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Framework :: Flake8
Classifier: Framework :: Plone
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Quality Assurance
Requires-Python: >=3.7
Provides-Extra: test
License-File: LICENSE


.. -*- coding: utf-8 -*-

.. image:: https://github.com/gforcada/flake8-deprecated/actions/workflows/testing.yml/badge.svg?branch=master
   :target: https://github.com/gforcada/flake8-deprecated/actions/workflows/testing.yml

.. image:: https://coveralls.io/repos/gforcada/flake8-deprecated/badge.svg?branch=master
   :target: https://coveralls.io/github/gforcada/flake8-deprecated?branch=master

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 and 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 3.7, 3.8, 3.9, 3.10 and pypy3
- 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

.. _`plone.recipe.codeanalysis`: https://pypi.python.org/pypi/plone.recipe.codeanalysis

.. -*- coding: utf-8 -*-

Changelog
=========

2.0.1 (2022-10-11)
------------------

- Handle subscripts in method calls, thanks to @The-Compiler for the report. [gforcada]

2.0.0 (2022-10-09)
------------------

- Test the code in all python versions supported on GitHub actions. [gforcada]

- Pin dependencies, to ensure reproducible builds. [gforcada]

- Drop python 2.7 and only support 3.7+. [gforcada]

- Ensure all deprecation aliases work. [gforcada]

- Check decorators as well. [gforcada]

1.3 (2017-10-31)
----------------

- Fix flake8 errors on this package and enforce them on CI.
  [alexmuller]

1.2.2.dev0 (2017-10-22)
-----------------------

- Use the ast module to parse the code and ensure no false positives are found.
  [alexmuller]

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]


