Skip to main content

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

cliqa-0.1.3.tar.gz (171.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cliqa-0.1.3-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

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

Hashes for cliqa-0.1.3.tar.gz
Algorithm Hash digest
SHA256 1185562aaba20feacb37f515a9b0679cabbbdc5d87c21861e0421f791a312f20
MD5 cc28ff6b1d4c026c8f0e63ec33a537d7
BLAKE2b-256 9f299288f28ab3eac312f4d52b5f5c6674f52f2ff06514312c69272dd7119a50

See more details on using hashes here.

Provenance

The following attestation bundles were made for cliqa-0.1.3.tar.gz:

Publisher: publish.yml on benomahony/cliqa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for cliqa-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 012bf67b117ab37cfeca359b0a68d875b06d82917065f5884b6a6892f4f6bea4
MD5 7f8ae6e1eaadaa826e7d8640f34e9616
BLAKE2b-256 b307064273cd179e408e83cabe327faea606c66a3fefe26ef5ff8a1653b5a319

See more details on using hashes here.

Provenance

The following attestation bundles were made for cliqa-0.1.3-py3-none-any.whl:

Publisher: publish.yml on benomahony/cliqa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page