Skip to content

πŸ§‘β€πŸ”§ Have fun with GitHub (App, Actions. etc.)

Notifications You must be signed in to change notification settings

zero-nnkn/github-practices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Commit messages Emoji

An combination of GitmπŸ˜‚ji and Angular convention with some tweaks on my part.

Commit messages format

We use angular's commit messages format and with gitmoji added at the beginning.

<gitmoji> <type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>

Examples:

πŸ“ docs(api): update api doc

Gitmoji for commit types

Add chore and wip to basic angular commit types.

Types Gitmoji Description
feat ✨ (normal) vs. πŸ’₯ (breaking change) New features
fix πŸ› (normal) vs πŸš‘οΈ (hotfix) Bug fix
build πŸ‘· Changes that affect the build system or external dependencies
ci πŸ’š Changes to our CI configuration files and scripts
docs πŸ“ Documentation only changes
perf ⚑️ Improve performance
refactor ♻️ Refactor code
style 🎨 Improve structure/format of the code
test βœ… Add, update or pass tests
chore πŸ”΅ Something that doesn’t fit the other types
wip 🚧 Working in progress

Pre-commit

Hooks

Basic hooks

Python code linter and formatter

We are using ruff in this repo because it can be used to replace most of the other tools.

  • ruff: Extremely fast Python linter and code formatter that support lint rules from many popular tools like Flake8, isort, etc.
  • mypy: Static Typing for Python.
  • flake8: Plugin for flake8 (wrap PyFlakes, pycodestyle, McCabe)
  • black: Uncompromising Python code formatter.
  • isort: Python code formatter for sorting and categorizing imports.
  • autoflake: Tool to removes unused imports/variables as reported by pyflakes.
  • pyupgrade: Tool to automatically upgrade syntax for newer versions of the language.

Text/Doc

  • doctoc: Tool to generates table of contents for markdown files.
  • markdownlint: Markdown lint tool.
  • codespell: Tool for code misspellings checking.

CI

pre-commit.ci: GitHub app for pre-commit.

Releases

No releases published

Packages

No packages published