{"id":30629799,"url":"https://github.com/pythoncharmers/ruff-formatter","last_synced_at":"2025-08-30T20:33:41.970Z","repository":{"id":307609696,"uuid":"1030100456","full_name":"PythonCharmers/ruff-formatter","owner":"PythonCharmers","description":"A Quarto extension for formatting Python code with Ruff when rendering Quarto documents","archived":false,"fork":false,"pushed_at":"2025-08-01T05:06:06.000Z","size":319,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-01T07:43:02.541Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PythonCharmers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-01T05:03:43.000Z","updated_at":"2025-08-01T05:06:10.000Z","dependencies_parsed_at":"2025-08-01T07:43:03.920Z","dependency_job_id":"01572019-5168-4bec-bf8a-f11505fa7c39","html_url":"https://github.com/PythonCharmers/ruff-formatter","commit_stats":null,"previous_names":["pythoncharmers/ruff-formatter"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/PythonCharmers/ruff-formatter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PythonCharmers%2Fruff-formatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PythonCharmers%2Fruff-formatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PythonCharmers%2Fruff-formatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PythonCharmers%2Fruff-formatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PythonCharmers","download_url":"https://codeload.github.com/PythonCharmers/ruff-formatter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PythonCharmers%2Fruff-formatter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272903975,"owners_count":25012766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-30T20:33:36.704Z","updated_at":"2025-08-30T20:33:41.963Z","avatar_url":"https://github.com/PythonCharmers.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ruff-formatter Extension For Quarto\n\nA [Quarto](https://quarto.org/) filter to format the Python code using [ruff](https://docs.astral.sh/ruff/formatter/)\n\n\n## Installing\n\n```bash\nquarto add PythonCharmers/ruff-formatter\n```\n\nThis will install the extension under the `_extensions` subdirectory.\nIf you're using version control, you will want to check in this directory.\n\nMake sure `ruff` is installed. See [here](https://docs.astral.sh/ruff/installation/) for installation instructions.\n\n\n## Using\n\nAdd the filter in your Quarto document like this:\n\n```\n---\nfilters:\n  - ruff-formatter\n---\n```\n\nIt is possible to configure `ruff` via a `pyproject.toml` or `ruff.toml` file: see [here](https://docs.astral.sh/ruff/configuration/).\n\nFor example, suppose you want to use 80 characters per line i.e. `--line-length=80`. (Ruff defaults to 88 character per line.) You can specify the following in the `pyproject.toml` file under `[tool.ruff]`,\n\n```\n[tool.ruff]\nline-length = 80\n```\n\nAnd then place this toml file in the same directory as the qmd file of the Python code chunks you want to format.\n\n\n## Credits\n\nThanks to Shafayet Shafee for his [Black formatter for Quarto](https://github.com/shafayetShafee/black-formatter) for inspiration!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoncharmers%2Fruff-formatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythoncharmers%2Fruff-formatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoncharmers%2Fruff-formatter/lists"}