{"id":20978758,"url":"https://github.com/holmanb/customs","last_synced_at":"2026-07-05T17:31:28.641Z","repository":{"id":240003197,"uuid":"801295648","full_name":"holmanb/customs","owner":"holmanb","description":"A static code analysis tool capable of identifing module import side-effects.","archived":false,"fork":false,"pushed_at":"2024-05-16T07:20:32.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-20T09:48:43.861Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/holmanb.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}},"created_at":"2024-05-16T00:44:16.000Z","updated_at":"2024-05-16T07:20:36.000Z","dependencies_parsed_at":"2024-05-16T08:51:08.569Z","dependency_job_id":null,"html_url":"https://github.com/holmanb/customs","commit_stats":null,"previous_names":["holmanb/customs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/holmanb/customs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holmanb%2Fcustoms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holmanb%2Fcustoms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holmanb%2Fcustoms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holmanb%2Fcustoms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/holmanb","download_url":"https://codeload.github.com/holmanb/customs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holmanb%2Fcustoms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005034,"owners_count":26083827,"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-10-10T02:00:06.843Z","response_time":62,"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":"2024-11-19T05:07:15.558Z","updated_at":"2025-10-10T19:38:36.491Z","avatar_url":"https://github.com/holmanb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Customs\n\nA proof of concept static code analysis tool capable of identifying module\nimport side-effects. It uses only standard library Python modules.\n\nIdeally this project will be replaced or subsumed by an upstream static\nanalysis tool.\n\n#### Example use case\n\n```bash\n$ customs.py cloudinit/config/cc_disk_setup.py --verbose\ncc_disk_setup.py:26:0: W001: Import invoked a Call | BLKID_CMD = subp.which(\"blkid\")\ncc_disk_setup.py:29:0: W001: Import invoked a Call | WIPEFS_CMD = subp.which(\"wipefs\")\ncc_disk_setup.py:111:0: W001: Import invoked a Call | __doc__ = get_meta_doc(meta)\ncc_disk_setup.py:27:0: W001: Import invoked a Call | BLKDEV_CMD = subp.which(\"blockdev\")\ncc_disk_setup.py:25:0: W001: Import invoked a Call | LSBLK_CMD = subp.which(\"lsblk\")\ncc_disk_setup.py:24:0: W001: Import invoked a Call | SGDISK_CMD = subp.which(\"sgdisk\")\ncc_disk_setup.py:28:0: W001: Import invoked a Call | PARTPROBE_CMD = subp.which(\"partprobe\")\ncc_disk_setup.py:23:0: W001: Import invoked a Call | SFDISK_CMD = subp.which(\"sfdisk\")\nAnalyzed 1 files\n\n```\n\n\n\n#### Test and maintenence\n\nDepends on the interest by other projects such as pylint / ruff / etc.\n\n- seek co-maintainers\n- tox / pyproject.toml\n- ci integration\n- PyPI release?\n\n\n#### Features\n\n- inline enable / disable\n- section block enable / disable\n- configurable list of symbols to ignore (currently getLogger is hardcoded)\n- Editor integration (VScode / NeoVim / Emacs)\n\nBased on an analysis tool written by Tushar Sadhwani.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholmanb%2Fcustoms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholmanb%2Fcustoms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholmanb%2Fcustoms/lists"}