Name | cmake-lint-paddle JSON |
Version |
1.5.2
JSON |
| download |
home_page | None |
Summary | A fork of cmake-lint for PaddlePaddle |
upload_time | 2024-08-17 08:12:21 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | Apache 2.0 |
keywords |
cmake
lint
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# CMakeLint
<p align="center">
<a href="https://python.org/" target="_blank"><img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/cmake-lint-paddle?logo=python&style=flat-square"></a>
<a href="https://pypi.org/project/cmake-lint-paddle/" target="_blank"><img src="https://img.shields.io/pypi/v/cmake-lint-paddle?style=flat-square" alt="pypi"></a>
<a href="https://pypi.org/project/cmake-lint-paddle/" target="_blank"><img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/cmake-lint-paddle?style=flat-square"></a>
<a href="LICENSE"><img alt="LICENSE" src="https://img.shields.io/github/license/PFCCLab/cmake-lint-paddle?style=flat-square"></a>
<a href="https://github.com/astral-sh/uv"><img alt="uv" src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json&style=flat-square"></a>
<a href="https://github.com/astral-sh/ruff"><img alt="ruff" src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json&style=flat-square"></a>
<a href="https://gitmoji.dev"><img src="https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67?style=flat-square" alt="Gitmoji"></a>
</p>
cmakelint parses CMake files and reports style issues.
cmakelint requires Python.
## Installation
To install cmakelint from PyPI, run:
```bash
pip install cmake-lint-paddle
```
## Usage
```bash
cmakelint --help
usage: cmakelint [-h] [-v] [--filter -X,+Y] [--config CONFIG] [--spaces SPACES] [--linelength LINELENGTH] [--quiet] [files ...]
cmakelint
positional arguments:
files files to lint
options:
-h, --help show this help message and exit
-v, --version show program's version number and exit
--filter -X,+Y Specify a comma separated list of filters to apply
--config CONFIG Use the given file for configuration. By default the file $PWD/.cmakelintrc, ~/.config/cmakelintrc,
$XDG_CONFIG_DIR/cmakelintrc or ~/.cmakelintrc is used if it exists. Use the value "None" to use no configuration file
(./None for a file called literally None) Only the option "filter=" is currently supported in this file.
--spaces SPACES Indentation should be a multiple of N spaces
--linelength LINELENGTH
This is the allowed line length for the project. The default value is 80 characters.
--quiet makes output quiet unless errors occurs Mainly used by automation tools when parsing huge amount of files. In those
cases actual error might get lost in the pile of other stats prints. This argument is also handy for build system
integration, so it's possible to add automated lint target to a project and invoke it via build system and have no
pollution of terminals or IDE.
```
Run the `--filter=` option with no filter to see available options. Currently
these are:
```
convention/filename
linelength
package/consistency
readability/logic
readability/mixedcase
readability/wonkycase
syntax
whitespace/eol
whitespace/extra
whitespace/indent
whitespace/mismatch
whitespace/newline
whitespace/tabs
```
An example .cmakelintrc file would be as follows:
```
filter=-whitespace/indent
```
With this file in your home directory, running these commands would have the
same effect:
```bash
cmakelint.py CMakeLists.txt
cmakelint.py --filter=-whitespace/indent CMakeLists.txt
```
Filters can optionally be directly enabled/disabled from within a CMake file,
overriding the configuration from file or CLI argument:
```
# lint_cmake: <+ or -><filter name>
# e.g.:
# lint_cmake: -readability/wonkycase
# add multiple filters as list:
# lint_cmake: <+/-><filter1>, <+/-><filter2>
```
cmakelint can also be run with [pre-commit](https://pre-commit.com). Add the following configuration block to your `.pre-commit-config.yaml`:
```yaml
- repo: https://github.com/PFCCLab/cmake-lint-paddle
rev: v1.5.2
hooks:
- id: cmakelint
```
# Output status codes
The program should exit with the following status codes:
- 0 if everything went fine
- 1 if an error message was issued
- 32 on usage error
Raw data
{
"_id": null,
"home_page": null,
"name": "cmake-lint-paddle",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "cmake, lint",
"author": null,
"author_email": "Richard Quirk <richard.quirk@gmail.com>, Nyakku Shigure <sigure.qaq@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/d7/dc/23be6a365f561b4c8dda05f2c2b01220b732cb633cb6d0cc991b671e7e44/cmake_lint_paddle-1.5.2.tar.gz",
"platform": null,
"description": "# CMakeLint\n\n<p align=\"center\">\n <a href=\"https://python.org/\" target=\"_blank\"><img alt=\"PyPI - Python Version\" src=\"https://img.shields.io/pypi/pyversions/cmake-lint-paddle?logo=python&style=flat-square\"></a>\n <a href=\"https://pypi.org/project/cmake-lint-paddle/\" target=\"_blank\"><img src=\"https://img.shields.io/pypi/v/cmake-lint-paddle?style=flat-square\" alt=\"pypi\"></a>\n <a href=\"https://pypi.org/project/cmake-lint-paddle/\" target=\"_blank\"><img alt=\"PyPI - Downloads\" src=\"https://img.shields.io/pypi/dm/cmake-lint-paddle?style=flat-square\"></a>\n <a href=\"LICENSE\"><img alt=\"LICENSE\" src=\"https://img.shields.io/github/license/PFCCLab/cmake-lint-paddle?style=flat-square\"></a>\n <a href=\"https://github.com/astral-sh/uv\"><img alt=\"uv\" src=\"https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json&style=flat-square\"></a>\n <a href=\"https://github.com/astral-sh/ruff\"><img alt=\"ruff\" src=\"https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json&style=flat-square\"></a>\n <a href=\"https://gitmoji.dev\"><img src=\"https://img.shields.io/badge/gitmoji-%20\ud83d\ude1c%20\ud83d\ude0d-FFDD67?style=flat-square\" alt=\"Gitmoji\"></a>\n</p>\n\ncmakelint parses CMake files and reports style issues.\n\ncmakelint requires Python.\n\n## Installation\n\nTo install cmakelint from PyPI, run:\n\n```bash\npip install cmake-lint-paddle\n```\n\n## Usage\n\n```bash\ncmakelint --help\nusage: cmakelint [-h] [-v] [--filter -X,+Y] [--config CONFIG] [--spaces SPACES] [--linelength LINELENGTH] [--quiet] [files ...]\n\ncmakelint\n\npositional arguments:\n files files to lint\n\noptions:\n -h, --help show this help message and exit\n -v, --version show program's version number and exit\n --filter -X,+Y Specify a comma separated list of filters to apply\n --config CONFIG Use the given file for configuration. By default the file $PWD/.cmakelintrc, ~/.config/cmakelintrc,\n $XDG_CONFIG_DIR/cmakelintrc or ~/.cmakelintrc is used if it exists. Use the value \"None\" to use no configuration file\n (./None for a file called literally None) Only the option \"filter=\" is currently supported in this file.\n --spaces SPACES Indentation should be a multiple of N spaces\n --linelength LINELENGTH\n This is the allowed line length for the project. The default value is 80 characters.\n --quiet makes output quiet unless errors occurs Mainly used by automation tools when parsing huge amount of files. In those\n cases actual error might get lost in the pile of other stats prints. This argument is also handy for build system\n integration, so it's possible to add automated lint target to a project and invoke it via build system and have no\n pollution of terminals or IDE.\n```\n\nRun the `--filter=` option with no filter to see available options. Currently\nthese are:\n\n```\nconvention/filename\nlinelength\npackage/consistency\nreadability/logic\nreadability/mixedcase\nreadability/wonkycase\nsyntax\nwhitespace/eol\nwhitespace/extra\nwhitespace/indent\nwhitespace/mismatch\nwhitespace/newline\nwhitespace/tabs\n```\n\nAn example .cmakelintrc file would be as follows:\n\n```\nfilter=-whitespace/indent\n```\n\nWith this file in your home directory, running these commands would have the\nsame effect:\n\n```bash\ncmakelint.py CMakeLists.txt\ncmakelint.py --filter=-whitespace/indent CMakeLists.txt\n```\n\nFilters can optionally be directly enabled/disabled from within a CMake file,\noverriding the configuration from file or CLI argument:\n\n```\n# lint_cmake: <+ or -><filter name>\n# e.g.:\n# lint_cmake: -readability/wonkycase\n# add multiple filters as list:\n# lint_cmake: <+/-><filter1>, <+/-><filter2>\n```\n\ncmakelint can also be run with [pre-commit](https://pre-commit.com). Add the following configuration block to your `.pre-commit-config.yaml`:\n\n```yaml\n- repo: https://github.com/PFCCLab/cmake-lint-paddle\n rev: v1.5.2\n hooks:\n - id: cmakelint\n```\n\n# Output status codes\n\nThe program should exit with the following status codes:\n\n- 0 if everything went fine\n- 1 if an error message was issued\n- 32 on usage error\n",
"bugtrack_url": null,
"license": "Apache 2.0",
"summary": "A fork of cmake-lint for PaddlePaddle",
"version": "1.5.2",
"project_urls": {
"Documentation": "https://github.com/PFCCLab/cmake-lint-paddle",
"Homepage": "https://github.com/PFCCLab/cmake-lint-paddle"
},
"split_keywords": [
"cmake",
" lint"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6a2e54f5e320c92018645383578dcd79534fa7487b71e070669fc203333f4c43",
"md5": "6800d1196dd9c1adcf4156df59cc1c3d",
"sha256": "576dc70022a91bfe6f1c71843b45e6f576078d605a93196a5c8afb53be443788"
},
"downloads": -1,
"filename": "cmake_lint_paddle-1.5.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6800d1196dd9c1adcf4156df59cc1c3d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 18081,
"upload_time": "2024-08-17T08:12:19",
"upload_time_iso_8601": "2024-08-17T08:12:19.897132Z",
"url": "https://files.pythonhosted.org/packages/6a/2e/54f5e320c92018645383578dcd79534fa7487b71e070669fc203333f4c43/cmake_lint_paddle-1.5.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d7dc23be6a365f561b4c8dda05f2c2b01220b732cb633cb6d0cc991b671e7e44",
"md5": "6c1d0bb419922c7d8920bfa9d0d46725",
"sha256": "b8a9a10adb746b61b0c4e6705a134b6c737d70d520129f0e43ef65aa22a13298"
},
"downloads": -1,
"filename": "cmake_lint_paddle-1.5.2.tar.gz",
"has_sig": false,
"md5_digest": "6c1d0bb419922c7d8920bfa9d0d46725",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 13274,
"upload_time": "2024-08-17T08:12:21",
"upload_time_iso_8601": "2024-08-17T08:12:21.385483Z",
"url": "https://files.pythonhosted.org/packages/d7/dc/23be6a365f561b4c8dda05f2c2b01220b732cb633cb6d0cc991b671e7e44/cmake_lint_paddle-1.5.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-17 08:12:21",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "PFCCLab",
"github_project": "cmake-lint-paddle",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "cmake-lint-paddle"
}