Skip to content

fork-tongue/ruff-cgx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages