{"id":13771315,"url":"https://github.com/hadialqattan/pycln","last_synced_at":"2025-09-04T16:15:40.484Z","repository":{"id":37498895,"uuid":"287483727","full_name":"hadialqattan/pycln","owner":"hadialqattan","description":"A formatter for finding and removing unused import statements.","archived":false,"fork":false,"pushed_at":"2025-08-25T00:10:11.000Z","size":1639,"stargazers_count":308,"open_issues_count":10,"forks_count":21,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-29T05:30:56.454Z","etag":null,"topics":["cli-app","cross-platform","formatters","linters","pycln","pypi-package","python3","quality-assurance","unused-imports"],"latest_commit_sha":null,"homepage":"https://hadialqattan.github.io/pycln","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/hadialqattan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"docs/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-08-14T08:29:35.000Z","updated_at":"2025-08-24T20:25:03.000Z","dependencies_parsed_at":"2023-11-14T17:26:38.079Z","dependency_job_id":"69d478cf-c09e-4b54-9f61-aeaffa5746a6","html_url":"https://github.com/hadialqattan/pycln","commit_stats":{"total_commits":383,"total_committers":11,"mean_commits":34.81818181818182,"dds":0.08355091383812008,"last_synced_commit":"2b2ee5d94542913e26c9e3bb38ee4d05a9e01066"},"previous_names":[],"tags_count":44,"template":false,"template_full_name":null,"purl":"pkg:github/hadialqattan/pycln","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadialqattan%2Fpycln","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadialqattan%2Fpycln/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadialqattan%2Fpycln/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadialqattan%2Fpycln/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hadialqattan","download_url":"https://codeload.github.com/hadialqattan/pycln/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadialqattan%2Fpycln/sbom","scorecard":{"id":452485,"data":{"date":"2025-08-11","repo":{"name":"github.com/hadialqattan/pycln","commit":"d6f86b6812e47ba5dc91eb6ab130bf12e38a43d6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5,"checks":[{"name":"Code-Review","score":1,"reason":"Found 2/18 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/cd.yml:1","Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/fuzz.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":6,"reason":"6 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 6","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: docs/SECURITY.md:1","Info: Found linked content: docs/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: docs/SECURITY.md:1","Info: Found text in security policy: docs/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cd.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/hadialqattan/pycln/cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/cd.yml:73: update your workflow using https://app.stepsecurity.io/secureworkflow/hadialqattan/pycln/cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/cd.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/hadialqattan/pycln/cd.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cd.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/hadialqattan/pycln/cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/cd.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/hadialqattan/pycln/cd.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cd.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/hadialqattan/pycln/cd.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/hadialqattan/pycln/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/hadialqattan/pycln/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/hadialqattan/pycln/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/hadialqattan/pycln/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/hadialqattan/pycln/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/hadialqattan/pycln/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/fuzz.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/hadialqattan/pycln/fuzz.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/fuzz.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/hadialqattan/pycln/fuzz.yml/master?enable=pin","Warn: pipCommand not pinned by hash: scripts/dev-install.sh:41","Warn: pipCommand not pinned by hash: scripts/dev-install.sh:45","Warn: pipCommand not pinned by hash: scripts/install.sh:5","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:53","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:54","Warn: pipCommand not pinned by hash: .github/workflows/fuzz.yml:29","Warn: pipCommand not pinned by hash: .github/workflows/fuzz.yml:30","Info:   0 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 third-party GitHubAction dependencies pinned","Info:   0 out of   7 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-48p4-8xcf-vxj5","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T08:33:43.741Z","repository_id":37498895,"created_at":"2025-08-19T08:33:43.741Z","updated_at":"2025-08-19T08:33:43.741Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273635250,"owners_count":25141139,"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-09-04T02:00:08.968Z","response_time":61,"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":["cli-app","cross-platform","formatters","linters","pycln","pypi-package","python3","quality-assurance","unused-imports"],"created_at":"2024-08-03T17:00:50.145Z","updated_at":"2025-09-04T16:15:40.445Z","avatar_url":"https://github.com/hadialqattan.png","language":"Python","funding_links":[],"categories":["Imports formatters"],"sub_categories":[],"readme":"\u003cimg src=\"https://raw.githubusercontent.com/hadialqattan/pycln/master/docs/_media/logo-background.png\" width=\"100%\" alt=\"Logo\"\u003e\n\n\u003ch2 align=\"center\"\u003e\n    A formatter for finding and removing unused import statements.\n\u003c/h2\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://hadialqattan.github.io/pycln\"\u003e\u003cimg src=\"https://img.shields.io/badge/more%20info-Pycln%20Docs-B5FFB3.svg?style=flat-square\" alt=\"Pycln Docs\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/hadialqattan/pycln/actions?query=workflow%3ACI\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/hadialqattan/pycln/ci.yml?branch=master\u0026label=CI\u0026logo=github\u0026style=flat-square\" alt=\"CI\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/hadialqattan/pycln/actions?query=workflow%3ACD\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/hadialqattan/pycln/cd.yml?label=CD\u0026logo=github\u0026style=flat-square\" alt=\"CD\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/hadialqattan/pycln/actions?query=workflow%3AFUZZ\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/hadialqattan/pycln/fuzz.yml?label=FUZZ\u0026logo=github\u0026style=flat-square\" alt=\"FUZZ\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://codecov.io/gh/hadialqattan/pycln\"\u003e\u003cimg src=\"https://img.shields.io/codecov/c/gh/hadialqattan/pycln/master?token=VVYBDCZPHR\u0026style=flat-square\" alt=\"Codecov\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/pyversions/pycln?style=flat-square\" alt=\"PYPI - Python Version\"\u003e\n    \u003ca href=\"https://pypi.org/project/pycln/\"\u003e\u003cimg src=\"https://img.shields.io/pypi/v/pycln?style=flat-square\" alt=\"PYPI - Pycln Version\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://pepy.tech/projects/pycln\"\u003e\u003cimg src=\"https://static.pepy.tech/badge/pycln\" alt=\"PyPI Downloads\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://pypi.org/project/pycln/\"\u003e\u003cimg src=\"https://img.shields.io/pypi/dm/pycln?color=dark-green\u0026style=flat-square\" alt=\"Downloads\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/hadialqattan/pycln/fork\"\u003e\u003cimg src=\"https://img.shields.io/github/forks/hadialqattan/pycln?style=flat-square\" alt=\"Forks\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/hadialqattan/pycln/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/hadialqattan/pycln?style=flat-square\" alt=\"Stars\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/hadialqattan/pycln/issues\"\u003e\u003cimg src=\"https://img.shields.io/github/issues/hadialqattan/pycln?style=flat-square\" alt=\"Issues\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/hadialqattan/pycln/pulls\"\u003e\u003cimg src=\"https://img.shields.io/github/issues-pr/hadialqattan/pycln?style=flat-square\" alt=\"Pull Requests\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/hadialqattan/pycln/graphs/contributors\"\u003e\u003cimg src=\"https://img.shields.io/github/contributors/hadialqattan/pycln?style=flat-square\" alt=\"Contributors\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/hadialqattan/pycln/commits/master\"\u003e\u003cimg src=\"https://img.shields.io/github/last-commit/hadialqattan/pycln.svg?style=flat-square\" alt=\"Last Commit\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/hadialqattan/pycln/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/hadialqattan/pycln.svg?color=A31F34\u0026style=flat-square\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n**[Read the documentation on Github pages!](https://hadialqattan.github.io/pycln)**\n\n---\n\n## Installation and usage\n\n### Installation\n\nPycln requires Python 3.8+ and can be easily installed using the most common Python\npackaging tools. We recommend installing the latest stable release from PyPI with\n[`pipx`](https://pipx.pypa.io/)\n\n```bash\n$ pip install pipx\n$ pipx install pycln\n```\n\n### Usage\n\nBy **default** Pycln will remove any unused import statement, So the simplest usage is\nto specify the path only:\n\n```bash\n$ pycln [PATH]\n```\n\nAlso, it's possible to run `pycln` as a package:\n\n```bash\n$ python3 -m pycln [PATH]\n```\n\nNOTE: you may need to use `-a/--all` option for more satisfying results. see\n[-a/--all flag](https://hadialqattan.github.io/pycln/#/?id=-a-all-flag).\n\nFurther information can be found in our docs:\n\n- [Usage and Configuration](https://hadialqattan.github.io/pycln/#/?id=usage)\n\n## Configuration\n\n**Pycln** is able to read project-specific default values for its command line options\nfrom a configuration file like `pyproject.toml` or `setup.cfg`. This is especially\nuseful for specifying custom CLI arguments/options like `path/paths`, `--include`,\n`--exclude`/`--extend-exclude`, or even `--all`.\n\nYou can find more details in our documentation:\n\n- [--config [PATH] CLI option](https://hadialqattan.github.io/pycln/#/?id=-config-path-option)\n\nAnd if you're looking for more general configuration documentation:\n\n- [Usage and Configuration](https://hadialqattan.github.io/pycln/#/?id=usage)\n\n## Used by\n\nThe following notable open-source projects trust and use _Pycln_:\n\n- [cibuildwheel](https://github.com/pypa/cibuildwheel)\n- [Open Event Server](https://github.com/fossasia/open-event-server)\n- [pybind11](https://github.com/pybind/pybind11)\n- [pywin32](https://github.com/mhammond/pywin32)\n- [Poetry](https://github.com/python-poetry/poetry)\n- [Pyodide](https://github.com/pyodide/pyodide)\n- [Rich](https://github.com/Textualize/rich)\n- [typeshed](https://github.com/python/typeshed)\n\nThe following organizations use _Pycln_:\n\n- [FOSSASIA](https://github.com/fossasia)\n- [Poetry](https://github.com/python-poetry)\n- [Python Packaging Authority](https://github.com/pypa)\n- [Scikit-HEP](https://github.com/scikit-hep)\n\nAre we missing anyone? Let us know.\n\n## License\n\nMIT\n\n## Contributing\n\nA big welcome for considering contributing to make the project better!\n\nYou can get started by reading this:\n\n- [General guidlines](https://hadialqattan.github.io/pycln/#/CONTRIBUTING?id=general-guidelines)\n\nYou can also dive directly into the technicalities:\n\n- [Contributing technicalities](https://hadialqattan.github.io/pycln/#/CONTRIBUTING?id=technicalities)\n\n## Change log\n\nThe log has become rather long. It moved to its own file.\n\nSee [CHANGELOG](https://hadialqattan.github.io/pycln/#/CHANGELOG).\n\n## Authors\n\nThe author list is quite long nowadays, so it lives in its own file.\n\nSee [AUTHORS](https://hadialqattan.github.io/pycln/#/AUTHORS)\n\n## Code of Conduct\n\nEveryone participating in the _Pycln_ project, and in particular in the issue tracker,\nand pull requests is expected to treat other people with respect.\n\n---\n\nGive a ⭐️ if this project helped you!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadialqattan%2Fpycln","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhadialqattan%2Fpycln","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadialqattan%2Fpycln/lists"}