https://github.com/5j9/flake8-no-u-prefixed-strings
Disallow u-prefixed string (Python 2's unicode literals) in your Python code.
https://github.com/5j9/flake8-no-u-prefixed-strings
code-quality flake8-plugin python-style
Last synced: about 1 month ago
JSON representation
Disallow u-prefixed string (Python 2's unicode literals) in your Python code.
- Host: GitHub
- URL: https://github.com/5j9/flake8-no-u-prefixed-strings
- Owner: 5j9
- License: gpl-3.0
- Created: 2018-09-28T04:01:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-28T06:44:15.000Z (over 6 years ago)
- Last Synced: 2025-02-23T12:39:54.232Z (2 months ago)
- Topics: code-quality, flake8-plugin, python-style
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
.. image:: https://travis-ci.org/5j9/flake8-no-u-prefixed-strings.svg?branch=master
:target: https://travis-ci.org/5j9/flake8-no-u-prefixed-stringsflake8-no-u-prefixed-strings
----------------------------
A plugin for flake8 (v3+) to disallow any u-prefixed string literals, e.g. ``u""``, ``u''``, ``U""""text"""``, or ``u'''string'''``.
Might be useful in Python 3 only projects, or Python 2 projects which enforce usage of ``unicode_literals``.You can use `flake8-future-import `_ to enforce import of ``unicode_literals``.
Installation
------------.. code-block:: bash
pip install flake8-no-u-prefixed-strings
Should work with all officially supported Python versions, including
Python 2.7.