Skip to content

Ambibuzz/.github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.github Configuration

Python Lint JS Lint Review Workflow Pre-commit Conventional Commits

This repository serves as the central configuration and health repository for Ambibuzz Technologies LLP. It mirrors the special .github repository pattern supported by GitHub to provide default community health files and configurations for the organization.

Table of Contents

Purpose

The primary purpose of this repository is to store reusable configurations and workflows that can be inherited or referenced by other repositories within the organization. This ensures consistency in coding standards, commit messages, and CI/CD processes.

Tools & Configurations

The following tools and configurations are maintained in this repository:

1. Python Linting & Formatting (ruff.toml)

We use Ruff for extremely fast Python linting and formatting.

  • Config File: ruff.toml
  • Settings:
    • Target Python Version: 3.10
    • Line Length: 110
    • Indent Style: Tab
    • Rules: Flake8 (F), pycodestyle (E, W), isort (I), pyupgrade (UP), bugbear (B), and Ruff specific rules (RUF).

2. Commit Message Linting (commitlint.config.js)

We enforce Conventional Commits to ensure a clean and structured commit history.

  • Config File: commitlint.config.js
  • Standard: Conventional Commits (via @commitlint/config-conventional)

3. Pre-commit Hooks (.pre-commit-config.yaml)

A set of Git hooks to automatically identify and fix issues before code is committed.

  • Config File: .pre-commit-config.yaml
  • Hooks:
    • trailing-whitespace
    • end-of-file-fixer
    • check-yaml, check-json, check-toml
    • ruff-check & ruff-format (Python)
    • prettier (JS, CSS, SCSS, etc.)
    • commitlint (Commit messages)

Setup

To ensure code quality and consistency, please set up the Git hooks locally:

  1. Install pre-commit:

    pip install pre-commit
  2. Install the hooks:

    pre-commit install
    pre-commit install --hook-type commit-msg

Workflows

GitHub Actions workflows are located in .github/workflows/ and can be used for checking code quality across repositories.

  • pylint.yml: Runs Pylint checks.
  • jslint.yml: Runs JavaScript linting.
  • review.yml: General review workflow.

Templates

  • Pull Request Template: Located at .github/PULL_REQUEST_TEMPLATE.md, this template is automatically applied to new Pull Requests in the organization to guide contributors in providing necessary context.

  • Repository Structure:A quick overview of the key files and folders:

├── .github/
│   ├── workflows/
│   │   ├── pylint.yml
│   │   ├── jslint.yml
│   │   └── review.yml
│   └── PULL_REQUEST_TEMPLATE.md
├── .pre-commit-config.yaml
├── commitlint.config.js
├── ruff.toml
└── README.md

license

MIT

Maintainers

This application is actively maintained by Ambibuzz Technologies LLP. For any issues, please raise a GitHub issue or contact us.

Contact

About

Default workflows that are automatically added to all repositories.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors