flake8-no-json


Nameflake8-no-json JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/blablatdinov/flake8-no-json
Summaryflake8 plugin for using json from stdlib
upload_time2024-08-20 10:38:10
maintainerNone
docs_urlNone
authorAlmaz Ilaletdinov
requires_python<4.0,>=3.9
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <!---
The MIT License (MIT)

Copyright (c) 2024 blablatdinov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
OR OTHER DEALINGS IN THE SOFTWARE.
--->

# flake8-no-json

[![Build Status](https://github.com/blablatdinov/flake8-no-json/workflows/test/badge.svg?branch=master&event=push)](https://github.com/blablatdinov/flake8-no-json/actions?query=workflow%3Atest)
[![codecov](https://codecov.io/gh/blablatdinov/flake8-no-json/branch/master/graph/badge.svg)](https://codecov.io/gh/blablatdinov/flake8-no-json)
[![Python Version](https://img.shields.io/pypi/pyversions/flake8-no-json.svg)](https://pypi.org/project/flake8-no-json/)
[![wemake-python-styleguide](https://img.shields.io/badge/style-wemake-000000.svg)](https://github.com/wemake-services/wemake-python-styleguide)

## 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`:

```bash
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:

```bash
flake8 your_project/
```

The plugin will raise an error whenever it detects an import of the json package:

```python
import json  # FJ001: Usage of the 'json' package is not allowed.
```

## License

[MIT](https://github.com/blablatdinov/flake8-no-json/blob/master/LICENSE)


## Credits

This project was generated with [`wemake-python-package`](https://github.com/wemake-services/wemake-python-package). Current template version is: [9899cb192f754a566da703614227e6d63227b933](https://github.com/wemake-services/wemake-python-package/tree/9899cb192f754a566da703614227e6d63227b933). See what is [updated](https://github.com/wemake-services/wemake-python-package/compare/9899cb192f754a566da703614227e6d63227b933...master) since then.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/blablatdinov/flake8-no-json",
    "name": "flake8-no-json",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "Almaz Ilaletdinov",
    "author_email": "a.ilaletdinov@yandex.ru",
    "download_url": "https://files.pythonhosted.org/packages/e5/32/5bcfc1b8ba09ab53b4849f4e11c0b63abce77173aa2196a93c0fa0ac1f4d/flake8_no_json-0.0.1.tar.gz",
    "platform": null,
    "description": "<!---\nThe MIT License (MIT)\n\nCopyright (c) 2024 blablatdinov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\nDAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE\nOR OTHER DEALINGS IN THE SOFTWARE.\n--->\n\n# flake8-no-json\n\n[![Build Status](https://github.com/blablatdinov/flake8-no-json/workflows/test/badge.svg?branch=master&event=push)](https://github.com/blablatdinov/flake8-no-json/actions?query=workflow%3Atest)\n[![codecov](https://codecov.io/gh/blablatdinov/flake8-no-json/branch/master/graph/badge.svg)](https://codecov.io/gh/blablatdinov/flake8-no-json)\n[![Python Version](https://img.shields.io/pypi/pyversions/flake8-no-json.svg)](https://pypi.org/project/flake8-no-json/)\n[![wemake-python-styleguide](https://img.shields.io/badge/style-wemake-000000.svg)](https://github.com/wemake-services/wemake-python-styleguide)\n\n## Background\n\nThis is a Flake8 plugin that prevents the use of the standard json package in Python code.\nThe intent is to enforce the use of an alternative JSON handling library, such as ujson,\norjson, or any other specified by your project guidelines.\n\n## Installation\n\nTo install `flake8-no-json`, you can use `pip`:\n\n```bash\npip install flake8-no-json\n```\n\n## Usage\n\nOnce installed, the plugin will automatically be used when running Flake8. There is no additional configuration required.\n\nRun Flake8 as you normally would:\n\n```bash\nflake8 your_project/\n```\n\nThe plugin will raise an error whenever it detects an import of the json package:\n\n```python\nimport json  # FJ001: Usage of the 'json' package is not allowed.\n```\n\n## License\n\n[MIT](https://github.com/blablatdinov/flake8-no-json/blob/master/LICENSE)\n\n\n## Credits\n\nThis project was generated with [`wemake-python-package`](https://github.com/wemake-services/wemake-python-package). Current template version is: [9899cb192f754a566da703614227e6d63227b933](https://github.com/wemake-services/wemake-python-package/tree/9899cb192f754a566da703614227e6d63227b933). See what is [updated](https://github.com/wemake-services/wemake-python-package/compare/9899cb192f754a566da703614227e6d63227b933...master) since then.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "flake8 plugin for using json from stdlib",
    "version": "0.0.1",
    "project_urls": {
        "Homepage": "https://github.com/blablatdinov/flake8-no-json",
        "Repository": "https://github.com/blablatdinov/flake8-no-json"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "45cdd098be6736d27ade28d0576e05fe0697187ab0aa8bb37373c7920f591731",
                "md5": "f208325218acb797899d1c62de8debdb",
                "sha256": "881eb7c70cb7e8c3e056e204c34db6af959f37d5f8645764568eec3408768672"
            },
            "downloads": -1,
            "filename": "flake8_no_json-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f208325218acb797899d1c62de8debdb",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 6443,
            "upload_time": "2024-08-20T10:38:08",
            "upload_time_iso_8601": "2024-08-20T10:38:08.891304Z",
            "url": "https://files.pythonhosted.org/packages/45/cd/d098be6736d27ade28d0576e05fe0697187ab0aa8bb37373c7920f591731/flake8_no_json-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e5325bcfc1b8ba09ab53b4849f4e11c0b63abce77173aa2196a93c0fa0ac1f4d",
                "md5": "0a968b8a100ef37cc14e63dbeb6b0ec1",
                "sha256": "31ce11487919c3d21030b5dca38c966b9b755fdd1aed95c26083b7ac24723a9d"
            },
            "downloads": -1,
            "filename": "flake8_no_json-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "0a968b8a100ef37cc14e63dbeb6b0ec1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 3101,
            "upload_time": "2024-08-20T10:38:10",
            "upload_time_iso_8601": "2024-08-20T10:38:10.394816Z",
            "url": "https://files.pythonhosted.org/packages/e5/32/5bcfc1b8ba09ab53b4849f4e11c0b63abce77173aa2196a93c0fa0ac1f4d/flake8_no_json-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-20 10:38:10",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "blablatdinov",
    "github_project": "flake8-no-json",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "flake8-no-json"
}
        
Elapsed time: 0.29091s