{"id":13734000,"url":"https://github.com/queensferryme/flake8-too-many","last_synced_at":"2026-01-17T02:51:06.251Z","repository":{"id":41896269,"uuid":"394682638","full_name":"queensferryme/flake8-too-many","owner":"queensferryme","description":"A flake8 plugin that prevents you from writing \"too many\" bad codes.","archived":false,"fork":false,"pushed_at":"2025-12-15T18:06:16.000Z","size":123,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-19T01:09:55.692Z","etag":null,"topics":["flake8","flake8-plugin","linter","python","static-analysis"],"latest_commit_sha":null,"homepage":"","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/queensferryme.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-08-10T14:22:52.000Z","updated_at":"2024-04-24T18:15:10.000Z","dependencies_parsed_at":"2024-04-15T20:36:37.839Z","dependency_job_id":"36df4646-5be1-4da0-b5cc-b64e9d8fed1d","html_url":"https://github.com/queensferryme/flake8-too-many","commit_stats":{"total_commits":70,"total_committers":2,"mean_commits":35.0,"dds":0.1428571428571429,"last_synced_commit":"0dadd5c275c586466306479a280f83f0b26e41f7"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/queensferryme/flake8-too-many","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queensferryme%2Fflake8-too-many","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queensferryme%2Fflake8-too-many/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queensferryme%2Fflake8-too-many/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queensferryme%2Fflake8-too-many/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/queensferryme","download_url":"https://codeload.github.com/queensferryme/flake8-too-many/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queensferryme%2Fflake8-too-many/sbom","scorecard":{"id":755577,"data":{"date":"2025-08-11","repo":{"name":"github.com/queensferryme/flake8-too-many","commit":"0dadd5c275c586466306479a280f83f0b26e41f7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/22 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":"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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.yaml:1","Warn: no topLevel permission defined: .github/workflows/test.yaml: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":"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":"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/release.yaml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/queensferryme/flake8-too-many/release.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/queensferryme/flake8-too-many/release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/queensferryme/flake8-too-many/release.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/queensferryme/flake8-too-many/release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/queensferryme/flake8-too-many/test.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/queensferryme/flake8-too-many/test.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/queensferryme/flake8-too-many/test.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yaml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/queensferryme/flake8-too-many/test.yaml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/release.yaml:21","Warn: pipCommand not pinned by hash: .github/workflows/release.yaml:22","Warn: pipCommand not pinned by hash: .github/workflows/test.yaml:37","Warn: pipCommand not pinned by hash: .github/workflows/test.yaml:38","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of   4 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":"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: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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 0.1.5 not signed: https://api.github.com/repos/queensferryme/flake8-too-many/releases/79227781","Warn: release artifact 0.1.4 not signed: https://api.github.com/repos/queensferryme/flake8-too-many/releases/56676636","Warn: release artifact 0.1.3 not signed: https://api.github.com/repos/queensferryme/flake8-too-many/releases/56614591","Warn: release artifact 0.1.2 not signed: https://api.github.com/repos/queensferryme/flake8-too-many/releases/49790448","Warn: release artifact 0.1.1 not signed: https://api.github.com/repos/queensferryme/flake8-too-many/releases/47898258","Warn: release artifact 0.1.5 does not have provenance: https://api.github.com/repos/queensferryme/flake8-too-many/releases/79227781","Warn: release artifact 0.1.4 does not have provenance: https://api.github.com/repos/queensferryme/flake8-too-many/releases/56676636","Warn: release artifact 0.1.3 does not have provenance: https://api.github.com/repos/queensferryme/flake8-too-many/releases/56614591","Warn: release artifact 0.1.2 does not have provenance: https://api.github.com/repos/queensferryme/flake8-too-many/releases/49790448","Warn: release artifact 0.1.1 does not have provenance: https://api.github.com/repos/queensferryme/flake8-too-many/releases/47898258"],"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 8 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"}},{"name":"Vulnerabilities","score":0,"reason":"12 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-48 / GHSA-fj7x-q9j7-g6q6","Warn: Project is vulnerable to: PYSEC-2024-230 / GHSA-248v-346w-9cwc","Warn: Project is vulnerable to: PYSEC-2022-42986 / GHSA-43fp-rhv2-5gv8","Warn: Project is vulnerable to: PYSEC-2023-135 / GHSA-xqr8-7jwr-rhp7","Warn: Project is vulnerable to: GHSA-vqfr-h8mv-ghfj","Warn: Project is vulnerable to: PYSEC-2024-60 / GHSA-jjg7-2v4v-x38h","Warn: Project is vulnerable to: PYSEC-2022-42969","Warn: Project is vulnerable to: PYSEC-2025-49 / GHSA-5rjg-fvgr-3xxf","Warn: Project is vulnerable to: GHSA-cx63-2mw6-8hw5","Warn: Project is vulnerable to: PYSEC-2022-43012 / GHSA-r9hx-vwmv-q579","Warn: Project is vulnerable to: PYSEC-2024-187 / GHSA-rqc4-2hc7-8c8v","Warn: Project is vulnerable to: GHSA-jfmj-5v4g-7637"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T21:35:44.990Z","repository_id":41896269,"created_at":"2025-08-22T21:35:44.991Z","updated_at":"2025-08-22T21:35:44.991Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28492590,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T02:39:23.645Z","status":"ssl_error","status_checked_at":"2026-01-17T02:34:19.649Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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","flake8-plugin","linter","python","static-analysis"],"created_at":"2024-08-03T03:00:51.620Z","updated_at":"2026-01-17T02:51:06.212Z","avatar_url":"https://github.com/queensferryme.png","language":"Python","funding_links":[],"categories":["Clean code"],"sub_categories":[],"readme":"# flake8-too-many\n\n[![python: 3.7+](https://img.shields.io/badge/python-\u003e=3.7-blue.svg)](https://www.python.org/downloads/)\n[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/queensferryme/flake8-too-many/master.svg)](https://results.pre-commit.ci/latest/github/queensferryme/flake8-too-many/master)\n[![github ci status](https://img.shields.io/github/workflow/status/queensferryme/flake8-too-many/Test?label=test\u0026logo=github\u0026message=passed)](https://github.com/RSSerpent/RSSerpent/actions/workflows/test.yaml)\n[![codecov](https://codecov.io/gh/queensferryme/flake8-too-many/branch/master/graph/badge.svg?token=56VCCB1JUB)](https://codecov.io/gh/queensferryme/flake8-too-many)\n\nA flake8 plugin that prevents you from writing \"too many\" bad codes.\n\n## Installation\n\nwith `pip`\n\n```shell\npip install flake8-too-many\n```\n\nwith [`poetry`](https://python-poetry.org/)\n\n```shell\npoetry add -D flake8-too-many\n```\n\nwith [`pre-commit`](https://pre-commit.com/) ([doc](https://flake8.pycqa.org/en/latest/user/using-hooks.html))\n\n```yaml\nrepos:\n  - repo: https://github.com/PyCQA/flake8\n    rev: '' # pick a git hash/tag\n    hooks:\n      - id: flake8\n        additional_dependencies:\n          # ...\n          - flake8-too-many\n```\n\n## Error Codes\n\n| code   | description                              | example                                                      |\n| ------ | ---------------------------------------- | ------------------------------------------------------------ |\n| TMN001 | function has too many arguments.         | [link](https://github.com/queensferryme/flake8-too-many/blob/master/tests/files/function_arguments.py) |\n| TMN002 | function returns too many values.        | [link](https://github.com/queensferryme/flake8-too-many/blob/master/tests/files/function_return_values.py) |\n| TMN003 | function has too many return statements. | [link](https://github.com/queensferryme/flake8-too-many/blob/master/tests/files/function_return_stmts.py) |\n| TMN004 | unpacking has too many targets.          | [link](https://github.com/queensferryme/flake8-too-many/blob/master/tests/files/unpacking_targets.py) |\n\n\n## Options\n\nThese options could be either passed in as command line flags, or specified in a `.flake8` configuration file.\n\n* `--max-function-arguments`, int, default to 6;\n  * `--ignore-defaulted-arguments`, bool, default to false;\n* `--max-function-return-values`, int, default to 3;\n* `--max-function-return-stmts`, int, default to 3;\n* `--max-unpacking-targets`, int, default to 3.\n\nRun `flake8 -h` for detailed description of each option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueensferryme%2Fflake8-too-many","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqueensferryme%2Fflake8-too-many","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueensferryme%2Fflake8-too-many/lists"}