{"id":35150776,"url":"https://github.com/sasso-effe/notebooks-pre-commit","last_synced_at":"2026-04-22T08:31:44.527Z","repository":{"id":300008614,"uuid":"1004859896","full_name":"sasso-effe/notebooks-pre-commit","owner":"sasso-effe","description":"A pre-commit hook for cleaning python notebooks.","archived":false,"fork":false,"pushed_at":"2025-11-28T08:53:57.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-30T17:50:04.225Z","etag":null,"topics":["clean-code","ipython-notebook","pre-commit-hooks"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sasso-effe.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-06-19T09:39:41.000Z","updated_at":"2025-11-28T08:54:01.000Z","dependencies_parsed_at":"2025-06-19T12:23:49.854Z","dependency_job_id":"a017f1b1-b479-4bce-81ee-99bdf2eae4ee","html_url":"https://github.com/sasso-effe/notebooks-pre-commit","commit_stats":null,"previous_names":["sasso-effe/notebooks-pre-commit"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/sasso-effe/notebooks-pre-commit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sasso-effe%2Fnotebooks-pre-commit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sasso-effe%2Fnotebooks-pre-commit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sasso-effe%2Fnotebooks-pre-commit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sasso-effe%2Fnotebooks-pre-commit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sasso-effe","download_url":"https://codeload.github.com/sasso-effe/notebooks-pre-commit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sasso-effe%2Fnotebooks-pre-commit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32127848,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T07:37:52.372Z","status":"ssl_error","status_checked_at":"2026-04-22T07:37:51.635Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["clean-code","ipython-notebook","pre-commit-hooks"],"created_at":"2025-12-28T15:35:25.330Z","updated_at":"2026-04-22T08:31:44.507Z","avatar_url":"https://github.com/sasso-effe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# notebooks-pre-commit\n\n[![GitHub version](https://badge.fury.io/gh/sasso-effe%2Fnotebooks-pre-commit.svg?icon=si%3Agithub)](https://badge.fury.io/gh/sasso-effe%2Fnotebooks-pre-commit)\n\nA [pre-commit](https://pre-commit.com/) hook for cleaning python notebooks.\n\n### Images downscaling\n\nTo downscale your notebooks' images via pre-commit, add the following to your `.pre-commit-config.yaml`:\n\n```yaml\nrepos:\n- repo: https://github.com/sasso-effe/notebooks-pre-commit\n  rev: v0.1.0\n  hooks:\n    - id: downscale-notebook-images\n```\n\nYou can disable conversion of PNG images to JPEG with:\n\n```yaml\nrepos:\n- repo: https://github.com/sasso-effe/notebooks-pre-commit\n  rev: v0.1.0\n  hooks:\n    - id: downscale-notebook-images\n      args: [\"--kep-png\"]\n```\n\nOther options are:\n\n - `--max-img-res`: Resize images that have one side larger than this number (in pixels). Defaults to 800.\n - `--max-file-size`: Ignore notebooks smaller than this size (in KB). Defaults to 512.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsasso-effe%2Fnotebooks-pre-commit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsasso-effe%2Fnotebooks-pre-commit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsasso-effe%2Fnotebooks-pre-commit/lists"}