معرفی شرکت ها


flake8-pep3101-2.0.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Checks for old string formatting.
ویژگی مقدار
سیستم عامل -
نام فایل flake8-pep3101-2.0.0
نام flake8-pep3101
نسخه کتابخانه 2.0.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Gil Forcada
ایمیل نویسنده gil.gnome@gmail.com
آدرس صفحه اصلی https://github.com/gforcada/flake8-pep3101
آدرس اینترنتی https://pypi.org/project/flake8-pep3101/
مجوز GPL version 2
.. -*- coding: utf-8 -*- .. image:: https://github.com/gforcada/flake8-pep3101/actions/workflows/testing.yml/badge.svg?event=push :target: https://github.com/gforcada/flake8-pep3101/actions/workflows/testing.yml .. image:: https://coveralls.io/repos/gforcada/flake8-pep3101/badge.svg?branch=master&service=github :target: https://coveralls.io/github/gforcada/flake8-pep3101?branch=master Flake8 PEP 3101 plugin ====================== Python has three string formatting options: - the old percent operator - the ``.format()`` string method - `f-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 ------- Install with pip:: $ pip install flake8-pep3101 Requirements ------------ - Python 3.7, 3.8, 3.9, 3.10 and pypy3 - flake8 Extras ------ If you want to check whether your new style formatting are correctly defined, check `flake8-string-format`_ plugin. License ------- 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 .. -*- coding: utf-8 -*- Changelog ========= 2.0.0 (2022-10-08) ------------------ - Update dependencies. [gforcada] - Test the code on GitHub actions. [gforcada] - Drop python 2.7 and only support python 3.7+. [gforcada] - Use linters and formatters to keep code sane and beautiful. [gforcada] - Simplify the amount of code to write a test. [gforcada] 1.3.0 (2019-12-15) ------------------ - Warn about `"string %i" % 33` which was previously ignored. Reported by @unformatt. [gforcada] 1.2.1 (2018-04-05) ------------------ - Fix text on the error message. [icemac] 1.2 (2017-12-12) ---------------- - Handle when there are numbers in either side of the modulo operator. [gforcada] 1.1 (2017-05-12) ---------------- - Handle variable formatting (i.e. ``my_string_variable % ('one', 'two', )``). [gforcada] - Test againsta Python 3.6. [gforcada] - Release universal wheels as well. [gforcada] 1.0 (2016-11-27) ---------------- - Remove tox and use plain travis matrix to test. [gforcada] - Test on python 2.7, python 3.5, pypy and pypy3. [gforcada] - Require flake8 3.0. [gforcada] - Use ast to analyze the code. The regular expression used so far was mostly a hit or miss, with each corner case making it even more difficult to read. The new checker with ast is simple, elegant and so much easy to read. [gforcada] 0.6 (2016-10-29) ---------------- - Handle edge case when a single or double quoted string has another pair of quotes inside ('lala "lu" la') with some % symbol inside as well. [gforcada] 0.5 (2016-10-26) ---------------- - Add all possible string formatters. [gforcada] - Fix extension to work with flake8 > 3.0. [gforcada] - Fix crash when the % symbol was the last character of a line. [gforcada] 0.4 (2016-07-03) ---------------- - Rename pep8 to pycodestyle. [alefteris] - Add support for python 3.5. [alefteris] - Add flake8 pypi classifier. [alefteris] - Drop python 3.3 and 3.4 support (only testing it probably works just fine). [gforcada] - Fix travis and coveralls to work properly with python 3.5. [gforcada] 0.3 (2016-03-05) ---------------- - Allow stdin processing, this way text editor can pass input to flake8. [mjacksonw] 0.2 (2015-09-16) ---------------- - 0.1 was a brown bag release. [gforcada] 0.1 (2015-09-16) ---------------- - Initial release [gforcada] - Create the flake8 plugin per se. [gforcada]


نیازمندی

مقدار نام
- flake8
- pytest


نحوه نصب


نصب پکیج whl flake8-pep3101-2.0.0:

    pip install flake8-pep3101-2.0.0.whl


نصب پکیج tar.gz flake8-pep3101-2.0.0:

    pip install flake8-pep3101-2.0.0.tar.gz