Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
.. -- coding: utf-8 --
.. image:: https://github.com/gforcada/flake8-pep3101/actions/workflows/testing.yml/badge.svg?branch=master :target: https://github.com/gforcada/flake8-pep3101/actions/workflows/testing.yml
.. image:: https://coveralls.io/repos/gforcada/flake8-pep3101/badge.svg?branch=master :target: https://coveralls.io/github/gforcada/flake8-pep3101?branch=master
Python has three string formatting options:
.format()
string methodf-strings
_ (only since python 3.6+)Although f-strings are more ergonomic, there a certain scenarios where the
.format()
method is still the only viable option.
See pyformat website
_ for examples of the percent operator vs the format()
method.
For a more format definition see the PEP 3101
_.
This plugin is based on a python checker that was in plone.recipe.codeanalysis
_.
Install with pip::
$ pip install flake8-pep3101
If you want to check whether your new style formatting are correctly defined,
check flake8-string-format
_ plugin.
GPL 2.0
.. _pyformat website
: https://pyformat.info
.. _PEP 3101
: https://www.python.org/dev/peps/pep-3101
.. _f-strings
: https://peps.python.org/pep-0498/
.. _flake8-string-format
: https://pypi.python.org/pypi/flake8-string-format
.. _plone.recipe.codeanalysis
: https://pypi.python.org/pypi/plone.recipe.codeanalysis
FAQs
Checks for old string formatting
We found that flake8-pep3101 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.