flake8-numba


Nameflake8-numba JSON
Version 0.4.0 PyPI version JSON
download
home_page
SummaryPerform checks over numba usage
upload_time2023-07-23 12:14:04
maintainer
docs_urlNone
authorManuel Floriano Vázquez
requires_python>=3.9,<4.0
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # flake8-numba

Improve your Python development experience with flake8-numba. This plugin integrates with Flake8 to provide
comprehensive code analysis for projects that make use of numba. When working with numba, many errors are not
discovered until the code is run. However, many of these issues can be perfectly caught by performing some basic
syntactical analysis. This tool helps you catch potential errors and enhance code quality effortlessly.

## Installation

Make sure that you have `flake8` installed. Then:

```
pip install flake8-numba
```

After it calling `flake8` will include all rules defined by this plugin.

## Rules

Some examples are:

```python
@vectorize([float64(float64, float64)])
def f(x, y):
    return x + y, 2  # ERROR: only 1 value can be returned
```

or:

```python
# ERROR: Dimensions mismatch (second argument at left is an array but an scalar at right)
@guvectorize([(float32, float32[:], float32)], "(), () -> ()")
def func(...) -> None:
    ...
```


All available rules can be read in `RULES.md`

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "flake8-numba",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Manuel Floriano V\u00e1zquez",
    "author_email": "mflovaa@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/29/74/6a6a98c8bb5adaaac2a543eb4650d28dcf69b29a46aa662500fc9bcb7bd8/flake8_numba-0.4.0.tar.gz",
    "platform": null,
    "description": "# flake8-numba\n\nImprove your Python development experience with flake8-numba. This plugin integrates with Flake8 to provide\ncomprehensive code analysis for projects that make use of numba. When working with numba, many errors are not\ndiscovered until the code is run. However, many of these issues can be perfectly caught by performing some basic\nsyntactical analysis. This tool helps you catch potential errors and enhance code quality effortlessly.\n\n## Installation\n\nMake sure that you have `flake8` installed. Then:\n\n```\npip install flake8-numba\n```\n\nAfter it calling `flake8` will include all rules defined by this plugin.\n\n## Rules\n\nSome examples are:\n\n```python\n@vectorize([float64(float64, float64)])\ndef f(x, y):\n    return x + y, 2  # ERROR: only 1 value can be returned\n```\n\nor:\n\n```python\n# ERROR: Dimensions mismatch (second argument at left is an array but an scalar at right)\n@guvectorize([(float32, float32[:], float32)], \"(), () -> ()\")\ndef func(...) -> None:\n    ...\n```\n\n\nAll available rules can be read in `RULES.md`\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Perform checks over numba usage",
    "version": "0.4.0",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "467e892d90f238849e26e63ef480594e47bfa35691893c975b85911bd7c0fe3b",
                "md5": "108844e2dbc06af5f7f351a1bc9579ca",
                "sha256": "1ca23bef5bbbf1d0d303dca3068ae746ce680e90643c2997002381f43e6f2ad6"
            },
            "downloads": -1,
            "filename": "flake8_numba-0.4.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "108844e2dbc06af5f7f351a1bc9579ca",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9,<4.0",
            "size": 12067,
            "upload_time": "2023-07-23T12:14:03",
            "upload_time_iso_8601": "2023-07-23T12:14:03.087421Z",
            "url": "https://files.pythonhosted.org/packages/46/7e/892d90f238849e26e63ef480594e47bfa35691893c975b85911bd7c0fe3b/flake8_numba-0.4.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "29746a6a98c8bb5adaaac2a543eb4650d28dcf69b29a46aa662500fc9bcb7bd8",
                "md5": "1734396d71f1eb6b059bdd65b4b4624f",
                "sha256": "ab3c9fe9a179c4d7664ecf51454dc22fa442ef46b09c5e5e4a4e992b63f73a1c"
            },
            "downloads": -1,
            "filename": "flake8_numba-0.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "1734396d71f1eb6b059bdd65b4b4624f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9,<4.0",
            "size": 10132,
            "upload_time": "2023-07-23T12:14:04",
            "upload_time_iso_8601": "2023-07-23T12:14:04.704701Z",
            "url": "https://files.pythonhosted.org/packages/29/74/6a6a98c8bb5adaaac2a543eb4650d28dcf69b29a46aa662500fc9bcb7bd8/flake8_numba-0.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-23 12:14:04",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "flake8-numba"
}
        
Elapsed time: 0.11368s