Skip to main content

Flake8 Ensure ASCII encoding plugin.

Project description

flake8-ensure-ascii

Ensure that python code files does not contains UTF-8 or other fancy char encoding.

This module provides a plugin for flake8, the Python code checker.

Installation

Install with pip:

pip install flake8-ensure-ascii

The plugin officially supports Python >= 3.6 and flake8 >= 3.7. You may find other Python 3 versions work as well.

Usage

The plugin finds non ASCII chars you may not want to commit:

def my_function():
    print("It works 😋")
./my_file.py:2:21: ENC100 Non ASCII encoding found

Changelog

1.0.0

Breaking changes

Initial commit !

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flake8-ensure-ascii-1.0.0.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

flake8_ensure_ascii-1.0.0-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page