Analyze CLI tools against clig.dev guidelines
Project description
cliqa
Analyze CLI tools against clig.dev guidelines.
Installation
uv tool install cliqa
# or
pip install cliqa
Usage
Analyze any CLI command:
cliqa analyze ls
cliqa analyze git
cliqa analyze your-cli-tool
Run specific checks:
cliqa check ls help
cliqa check git version
List all available checks:
cliqa list-checks
Features
- No mocking: Real integration tests with actual CLI commands
- 93% test coverage: Comprehensive test suite
- NASA05 compliance: Defensive assertions throughout
- clig.dev alignment: Checks against modern CLI best practices
Pre-commit Hook
Add to your .pre-commit-config.yaml:
repos:
- repo: https://github.com/benomahony/cliqa
rev: v0.1.1
hooks:
- id: cliqa
args: [your-cli-tool]
Analyze multiple commands:
repos:
- repo: https://github.com/benomahony/cliqa
rev: v0.1.1
hooks:
- id: cliqa
name: Check main CLI
args: [my-tool]
- id: cliqa
name: Check admin CLI
args: [my-admin-tool]
Enable AI-powered analysis:
repos:
- repo: https://github.com/benomahony/cliqa
rev: v0.1.1
hooks:
- id: cliqa
args: [your-cli-tool, --ai]
This will analyze your CLI tool before each commit and fail if any errors are found.
Development
# Install dependencies
uv sync --extra test
# Run tests
uv run pytest
# Run pre-commit checks
pre-commit run --all-files
License
MIT
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cliqa-0.1.3.tar.gz.
File metadata
- Download URL: cliqa-0.1.3.tar.gz
- Upload date:
- Size: 171.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1185562aaba20feacb37f515a9b0679cabbbdc5d87c21861e0421f791a312f20
|
|
| MD5 |
cc28ff6b1d4c026c8f0e63ec33a537d7
|
|
| BLAKE2b-256 |
9f299288f28ab3eac312f4d52b5f5c6674f52f2ff06514312c69272dd7119a50
|
Provenance
The following attestation bundles were made for cliqa-0.1.3.tar.gz:
Publisher:
publish.yml on benomahony/cliqa
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cliqa-0.1.3.tar.gz -
Subject digest:
1185562aaba20feacb37f515a9b0679cabbbdc5d87c21861e0421f791a312f20 - Sigstore transparency entry: 855436838
- Sigstore integration time:
-
Permalink:
benomahony/cliqa@f7bd2ed3f1962561ac98cc414e96364c78adfddc -
Branch / Tag:
refs/heads/main - Owner: https://github.com/benomahony
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f7bd2ed3f1962561ac98cc414e96364c78adfddc -
Trigger Event:
push
-
Statement type:
File details
Details for the file cliqa-0.1.3-py3-none-any.whl.
File metadata
- Download URL: cliqa-0.1.3-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
012bf67b117ab37cfeca359b0a68d875b06d82917065f5884b6a6892f4f6bea4
|
|
| MD5 |
7f8ae6e1eaadaa826e7d8640f34e9616
|
|
| BLAKE2b-256 |
b307064273cd179e408e83cabe327faea606c66a3fefe26ef5ff8a1653b5a319
|
Provenance
The following attestation bundles were made for cliqa-0.1.3-py3-none-any.whl:
Publisher:
publish.yml on benomahony/cliqa
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cliqa-0.1.3-py3-none-any.whl -
Subject digest:
012bf67b117ab37cfeca359b0a68d875b06d82917065f5884b6a6892f4f6bea4 - Sigstore transparency entry: 855436843
- Sigstore integration time:
-
Permalink:
benomahony/cliqa@f7bd2ed3f1962561ac98cc414e96364c78adfddc -
Branch / Tag:
refs/heads/main - Owner: https://github.com/benomahony
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f7bd2ed3f1962561ac98cc414e96364c78adfddc -
Trigger Event:
push
-
Statement type: