Skip to main content

Ruff linter and formatter for collagraph single-file components

Project description

PyPI version CI status ruff

Ruff-cgx

Lint and format CGX files (collagraph single-file components) with ruff.

Usage

# Install in your environment (for example with uv)
uv add --dev ruff-cgx
# Show help for the tool
uv run ruff-cgx -h
# Check/Lint every cgx file in current folder (recursively)
uv run ruff-cgx check .
# Format every cgx file in the current folder (recursively)
uv run ruff-cgx format .
# Just check if there would be any changes from the formatter
uv run ruff-cgx format --check .
# Format just a single file
uv run ruff-cgx format my-component.cgx
# Format a folder and file
uv run ruff-cgx format ../folder_with_cgx_files my-component.cgx

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

ruff_cgx-0.1.1.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

ruff_cgx-0.1.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file ruff_cgx-0.1.1.tar.gz.

File metadata

  • Download URL: ruff_cgx-0.1.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ruff_cgx-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e4fb412ea79ecfa5c79dc663f28776f8ada7aa0119c1c5ebd81852ccde523536
MD5 0bd3551f8c17bed71ff4ff615392885e
BLAKE2b-256 0de57fb7e371921462c6ec34f2b1d630e6663e758e290ee3f997090df0b2ab1b

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruff_cgx-0.1.1.tar.gz:

Publisher: ci.yml on fork-tongue/ruff-cgx

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

File details

Details for the file ruff_cgx-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ruff_cgx-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ruff_cgx-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 32b50e0e38730731512d4757275c200abc4da96c305389f7cf215f32ff5b3136
MD5 4f056dfb048e685e54138fddda5d1bb6
BLAKE2b-256 bf09c9de94d89cf08431fc787972ad86f764a73122de4c12d5a5f429a97c357f

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruff_cgx-0.1.1-py3-none-any.whl:

Publisher: ci.yml on fork-tongue/ruff-cgx

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