Ruff linter and formatter for collagraph single-file components
Project description
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
Release history Release notifications | RSS feed
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.0.tar.gz
(7.4 kB
view details)
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 ruff_cgx-0.1.0.tar.gz.
File metadata
- Download URL: ruff_cgx-0.1.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e04fc175ee76e4a476347a6d8897294df5e0ac47e3fbb061fa17a213ffc0078
|
|
| MD5 |
4ae4fbed0182ae214939c042526b908b
|
|
| BLAKE2b-256 |
00049ad8aebd0630f80e2ae8bd9b4ef83d29c7d83d86d9cce97a3178611bf35b
|
File details
Details for the file ruff_cgx-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ruff_cgx-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c6f538f159262c7d1accfa5962a6bad08b0c4f32f5b34ff87a21245e62a5442
|
|
| MD5 |
36355ab90634d0e8234fb68381964dd5
|
|
| BLAKE2b-256 |
b0dbbd8fc630eca5e66525c961dd12e1a9a1188136cdec118e002045bbca94bf
|