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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for flake8-ensure-ascii-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b965231a2dede024ea90f349c4e260ab24e92d0d23bc8ea8165def06912864f |
|
MD5 | d93e8bd42addded0d676f74c03d65ba4 |
|
BLAKE2b-256 | 010e9e28ecc4d4182da5bc9eab027e631173ac4454084a22dd1a40c14d4ba764 |
Close
Hashes for flake8_ensure_ascii-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cfb64217a682bc89f4c8d99c6f56e0afb739fb4ef7c91b5ab3b07782d109cea |
|
MD5 | 3512af5d2576b4448ce71f5e92817b85 |
|
BLAKE2b-256 | 8822082d6d2601df336654badd31e24ac70520f0c3a45e95275a92b5c953b850 |