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
Changelog
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]
Metadata
Release files for flake8-deprecated 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flake8-deprecated-2.0.0.tar.gz | 13.3 kB | Without provenance | Details for flake8-deprecated-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flake8_deprecated-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for flake8_deprecated-2.0.0-py3-none-any.whl |
Total release size: 24.7 kB
Release files / flake8-deprecated-2.0.0.tar.gz
| Download URL | flake8-deprecated-2.0.0.tar.gz |
|---|---|
| Size | 13.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2b44ffe2962401fc5be7417a7700f13b0e5cc919085dff6eb8f282ab6443a97
|
|
BLAKE2b-256 checksum How to use checksums |
46987a88e3f20f22bf3e3748d12f154c7003f95c5ab797cc0c9df07432e7599b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Release files / flake8_deprecated-2.0.0-py3-none-any.whl
| Download URL | flake8_deprecated-2.0.0-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5c49b89faefd66de12f8357c9b539d864faeb5001810329aac49485e4ea578e2
|
|
BLAKE2b-256 checksum How to use checksums |
22f8ae165a126987a3d628d568490e6c584a608d2c80fa65e10a36a5377b684d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Security for flake8-deprecated 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.