flake8 plugin for using json from stdlib
Project description
flake8-no-json
Background
This is a Flake8 plugin that prevents the use of the standard json package in Python code. The intent is to enforce the use of an alternative JSON handling library, such as ujson, orjson, or any other specified by your project guidelines.
Installation
To install flake8-no-json
, you can use pip
:
pip install flake8-no-json
Usage
Once installed, the plugin will automatically be used when running Flake8. There is no additional configuration required.
Run Flake8 as you normally would:
flake8 your_project/
The plugin will raise an error whenever it detects an import of the json package:
import json # FJ001: Usage of the 'json' package is not allowed.
License
Credits
This project was generated with wemake-python-package
. Current template version is: 9899cb192f754a566da703614227e6d63227b933. See what is updated since then.
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
Hashes for flake8_no_json-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 881eb7c70cb7e8c3e056e204c34db6af959f37d5f8645764568eec3408768672 |
|
MD5 | f208325218acb797899d1c62de8debdb |
|
BLAKE2b-256 | 45cdd098be6736d27ade28d0576e05fe0697187ab0aa8bb37373c7920f591731 |