No description
Find a file
autocommit beaf76488f
Some checks failed
Publish / publish (push) Failing after 0s
deps-upgrade(deps): ⬆️ Update all project dependencies to latest stable versions
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-04-12 00:22:07 -07:00
.forgejo/workflows chore: migrate to DRY reusable workflow 2026-01-21 12:50:20 -08:00
src/lilith_ruff_config chore: initial commit - lilith-ruff-config 2026-01-21 12:38:11 -08:00
pyproject.toml deps-upgrade(deps): ⬆️ Update all project dependencies to latest stable versions 2026-04-12 00:22:07 -07:00
README.md chore: initial commit - lilith-ruff-config 2026-01-21 12:38:11 -08:00

@lilith/ruff-config

Shared Ruff linting and formatting configuration for Lilith Python projects.

Installation

pip install lilith-ruff-config

Usage

# Copy the base config to your project
python -c "from lilith_ruff_config import get_config_path; print(open(get_config_path()).read())" > ruff.base.toml

Then in your pyproject.toml:

[tool.ruff]
extend = "./ruff.base.toml"

Option 2: Dynamic path resolution

from lilith_ruff_config import get_config_path

# Returns the installed config path (works across Python versions)
config_path = get_config_path()

Option 3: Direct extend (version-specific)

# Note: Replace python3.XX with your Python version
[tool.ruff]
extend = ".venv/lib/python3.XX/site-packages/lilith_ruff_config/ruff.toml"