{"id":44789891,"url":"https://github.com/omaraboumrad/mastool","last_synced_at":"2026-02-16T10:59:09.264Z","repository":{"id":57439911,"uuid":"43903895","full_name":"omaraboumrad/mastool","owner":"omaraboumrad","description":"[M]ean [AST] T[ool] - static analysis checks of python code through flake8","archived":false,"fork":false,"pushed_at":"2017-07-21T12:56:57.000Z","size":38,"stargazers_count":24,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-16T19:57:59.576Z","etag":null,"topics":["flake8","linting","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/omaraboumrad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-08T16:56:37.000Z","updated_at":"2024-04-10T02:35:26.000Z","dependencies_parsed_at":"2022-09-26T22:20:47.722Z","dependency_job_id":null,"html_url":"https://github.com/omaraboumrad/mastool","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/omaraboumrad/mastool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omaraboumrad%2Fmastool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omaraboumrad%2Fmastool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omaraboumrad%2Fmastool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omaraboumrad%2Fmastool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omaraboumrad","download_url":"https://codeload.github.com/omaraboumrad/mastool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omaraboumrad%2Fmastool/sbom","scorecard":{"id":705860,"data":{"date":"2025-08-11","repo":{"name":"github.com/omaraboumrad/mastool","commit":"0ec566de6717d03c6ec61affe5d1e9ff8d7e6ebd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Code-Review","score":0,"reason":"Found 2/28 approved changesets -- score normalized to 0","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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":-1,"reason":"no dependencies found","details":null,"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":"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":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"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":"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.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 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-22T06:32:48.494Z","repository_id":57439911,"created_at":"2025-08-22T06:32:48.495Z","updated_at":"2025-08-22T06:32:48.495Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29506312,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"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":["flake8","linting","python"],"created_at":"2026-02-16T10:59:06.236Z","updated_at":"2026-02-16T10:59:09.258Z","avatar_url":"https://github.com/omaraboumrad.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/omaraboumrad/mastool.svg?branch=master)](https://travis-ci.org/omaraboumrad/mastool)\n\n# mastool\n\nstatic analysis for bad and/or avoidable practices\n\n### Installation\n\nmastool is available on pypi, you can install from source or simply:\n\n    pip install mastool\n\n### Usage\n\nAfter installing mastool, flake8 would get equipped with mastool's checks.\n\n    $ flake8 [PATH]\n\nMastool also adds the following switch to flake8, which provides a quick\nsuggestion about what to replace the reported code with.\n\n    $ flake8 --with-solutions\n\n### Checks\n\nSee [here](https://github.com/omaraboumrad/mastool/wiki/Practices) for more details or the summary below.\n\nCode | Message\n--- | ---\nM001 | looping against dictionary keys\nM002 | simplifiable if condition\nM003 | joining path with plus\nM004 | assigning to built-in\nM005 | catching a generic exception\nM006 | catching a generic exception and passing it silently\nM007 | use of import star\nM008 | comparing to True or False\nM009 | poor choice of default argument\nM010 | use of \"if\" expression as statement\nM011 | use of a comprehension as statement\nM012 | use of a generator as statement\n\n---\n\n### FAQ\n\n1. Some of these issues are not bad/erroneous!\n\n    Yes, in various contexts sometimes it may be ok (and possibly unavoidable) to\n    use these constructs, at which point you can ignore them using Flake8's [config](http://flake8.readthedocs.org/en/latest/config.html)\n    mechanism\n\n2. Why did this tool become as a Flake8 extension?\n\n    Flake8 provides a magnificent base for static analysis, there's no point\n    in reinventing the wheel.\n\n3. What are some other similar tools?\n\n    You can find some informatin about the subject on my [blog](http://aboumrad.info/essential-python-tools-quality.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomaraboumrad%2Fmastool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomaraboumrad%2Fmastool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomaraboumrad%2Fmastool/lists"}