{"id":19710577,"url":"https://github.com/web-dev-sam/bonza-commit","last_synced_at":"2026-02-10T11:32:12.629Z","repository":{"id":120461767,"uuid":"327085373","full_name":"web-dev-sam/bonza-commit","owner":"web-dev-sam","description":"This mini-program uses PyLint and ESLint to check for style-guide issues before each commit, keeping code clean.","archived":false,"fork":false,"pushed_at":"2024-11-12T13:31:18.000Z","size":208,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T04:33:09.739Z","etag":null,"topics":["code-style","eslint","pre-commit","pylint"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/web-dev-sam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-01-05T18:29:58.000Z","updated_at":"2024-11-12T13:31:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"f195e667-69e1-40a8-bdc8-efa580dc0130","html_url":"https://github.com/web-dev-sam/bonza-commit","commit_stats":null,"previous_names":["web-dev-sam/bonza-commit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/web-dev-sam/bonza-commit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-dev-sam%2Fbonza-commit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-dev-sam%2Fbonza-commit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-dev-sam%2Fbonza-commit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-dev-sam%2Fbonza-commit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web-dev-sam","download_url":"https://codeload.github.com/web-dev-sam/bonza-commit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-dev-sam%2Fbonza-commit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29298507,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T10:40:02.018Z","status":"ssl_error","status_checked_at":"2026-02-10T10:38:28.459Z","response_time":65,"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":["code-style","eslint","pre-commit","pylint"],"created_at":"2024-11-11T22:07:46.801Z","updated_at":"2026-02-10T11:32:12.584Z","avatar_url":"https://github.com/web-dev-sam.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\r\n\u003cbr\u003e\u0026nbsp;\u003cbr\u003e\r\n\u003cdiv align=\"center\"\u003e\r\n  \u003cimg width=\"512\" src=\"https://raw.githubusercontent.com/MindLaborDev/bonza-commit/main/preview.png\" /\u003e\r\n  \u003ch2 align=\"center\"\u003e\r\n    \u003cb\u003eBonza Commit\u003c/b\u003e\r\n  \u003c/h2\u003e\r\n  \u003cp\u003eThis mini-program uses pylint and eslint to check for coding-style issues before each commit, keeping the code clean.\u003c/p\u003e\r\n\u003c/div\u003e\r\n\r\n\r\n\u003cbr\u003e\u0026nbsp;\u003cbr\u003e\r\n## Installation (Ubuntu)\r\n * Install Python 3 and pip\r\n * Install npm if you want to check javascript code\r\n * Run `pip3 install inquirer`\r\n * Run `git clone https://github.com/MindLaborDev/bonza-commit.git .bonza` in your repositories root directory (in same directory as `.git`).\r\n * Run `python3 .bonza/install`.\r\n\r\nWhen you are about to commit, it will abort the commit if it finds coding-style issues (based on the configurations). If you want to enforce a commit use `git commit --no-verify`.\r\n\r\n\r\n\u003cbr\u003e\u0026nbsp;\u003cbr\u003e\r\n## Workflow\r\n * Run `./.bonza/check` for coding-style analysis (if you have checked *Only changed files* during installation stage your files first using the `git add` command).\r\n * Use `./.bonza/check --fix` to fix some of the issues automatically (Saves the fixes to your files).\r\n * Use `./.bonza/check --dryfix` to fix some of the issues automatically (Doesn't save the fixes; just shows analysis with fixes applied).\r\n * Use `./.bonza/check --compact` to output issues in a more compact way.\r\n * Edit `.eslintrc.json` and `pylintrc` to change eslint and pylint rules. You can find more about them at [pylint](http://pylint.pycqa.org/en/latest/technical_reference/features.html) and [eslint](https://eslint.org/docs/rules/).\r\n\r\n\r\n\u003cbr\u003e\u0026nbsp;\u003cbr\u003e\r\n## Ignoring folders and files\r\n\r\n#### Javascript (ESLint)\r\nCreate a `.eslintignore` file in your repository root directory and add the files and folders that you want to exclude from Javascript analysis in there. The syntax is the same as for a `.gitignore` file.\r\n\u003cbr\u003e\u0026nbsp;\r\n\r\n\r\n\u003cbr\u003e\u0026nbsp;\u003cbr\u003e\r\n## Troubleshooting\r\n * If you get a _pylint syntax error_ even though your code works perfectly fine. Try running pylint with a newer python version. Just edit the `.bonza/install` file or your git hook so pylint gets called using a newer version: `... python3 -m pylint ...`.    \r\n\r\n\u003cbr\u003e\u0026nbsp;\u003cbr\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-dev-sam%2Fbonza-commit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb-dev-sam%2Fbonza-commit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-dev-sam%2Fbonza-commit/lists"}