{"id":16836471,"url":"https://github.com/jcfr/commit-message-collection","last_synced_at":"2026-01-03T18:04:34.754Z","repository":{"id":137718232,"uuid":"107809928","full_name":"jcfr/commit-message-collection","owner":"jcfr","description":"The open-source citizen commit message collection","archived":false,"fork":false,"pushed_at":"2017-10-21T21:52:38.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-24T10:24:32.884Z","etag":null,"topics":["best-practices","commit-message","open-source"],"latest_commit_sha":null,"homepage":null,"language":null,"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/jcfr.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":"2017-10-21T19:33:10.000Z","updated_at":"2017-10-21T19:44:05.000Z","dependencies_parsed_at":"2023-03-21T05:36:32.782Z","dependency_job_id":null,"html_url":"https://github.com/jcfr/commit-message-collection","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcfr%2Fcommit-message-collection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcfr%2Fcommit-message-collection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcfr%2Fcommit-message-collection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcfr%2Fcommit-message-collection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcfr","download_url":"https://codeload.github.com/jcfr/commit-message-collection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244147343,"owners_count":20405942,"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","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":["best-practices","commit-message","open-source"],"created_at":"2024-10-13T12:13:34.672Z","updated_at":"2026-01-03T18:04:29.736Z","avatar_url":"https://github.com/jcfr.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"The open-source citizen commit message collection\n=================================================\n\nCollection of well crafted and informative commit messages used when\nupdating a project to follow the best practices.\n\n\u003e I created this collection of commit messages because I too often\n\u003e find myself browsing history of projects I worked on to copy-paste\n\u003e content of messages.\n\u003e\n\u003e -- \u003ccite\u003e@jcfr on Saturday, October 21, 2017\u003c/cite\u003e\n\nContributions are welcome.\n\nTable of Contents\n=================\n\n   * [The open-source citizen commit message collection](#the-open-source-citizen-commit-message-collection)\n   * [Python](#python)\n      * [flake8](#flake8)\n      * [Use \"is None\" instead of \"== None\"](#use-is-none-instead-of--none)\n\n\n\u003c!--\n*Created by [gh-md-toc](https://github.com/ekalinin/github-markdown-toc)*\n--\u003e\n\n[![][cc-img]][cc]\n\nThis work is licensed under a [Creative Commons Attribution 4.0 International License][cc].\n\n[cc]: http://creativecommons.org/licenses/by/4.0/\n[cc-img]: https://i.creativecommons.org/l/by/4.0/80x15.png\n\n\n# Python\n\n## flake8\n\n```\nSTYLE: Add .flake8 configuration to support python script validation\n\nFlake8 is a python source checker.\n\nThe initial configuration file adds exceptions for all errors, it will\niteratively be updated as the code is improved.\n\nAfter installing flake8 with `pip install flake8`, the following shell\nscript was used to craft the list of exceptions:\n\n  IFS=$'\\n'\n  for line in $(flake8 . | cut -d\":\" -f4 | sort | uniq)\n  do\n     # Remove leading space\n     line=$(echo $line | sed -e 's/^[ \\t]*//')\n     # Extract error code\n     code=$(echo $line | cut -d\" \" -f1)\n     echo \"    # $line\"\n     echo \"    $code,\"\n  done\n\nInternally flake8 is wrapper around these tools:\n\n* PyFlakes: analyzes programs and detects various errors. It works by\n  parsing the source file, not importing it, so it is safe to use on\n  modules with side effects. It’s also much faster.\n\n* pycodestyle: a tool to check your Python code against some of the\n  style conventions in PEP 8 (the style guide for python code).\n  See https://www.python.org/dev/peps/pep-0008/\n\n* Ned Batchelder’s McCabe script: check McCabe (or cyclomatic) complexity.\n  See https://en.wikipedia.org/wiki/Cyclomatic_complexity.\n\nTo learn more about flake8. See http://flake8.pycqa.org/en/latest/\n```\n\n## Use \"is None\" instead of \"== None\"\n\n```\nSTYLE: Update python scripts to use \"is None\" instead of \"== None\"\n\nRational copied from https://www.python.org/dev/peps/pep-0290/#testing-for-none\n\n// -----------------\nSince there is only one None object, equality can be tested with identity. Identity\ntests are slightly faster than equality tests. Also, some object types may overload\ncomparison, so equality testing may be much slower.\n\nPattern:\n\nif v == None  --\u003e  if v is None:\nif v != None  --\u003e  if v is not None:\n// -----------------\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcfr%2Fcommit-message-collection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcfr%2Fcommit-message-collection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcfr%2Fcommit-message-collection/lists"}