#code #quality #production #certified #git

app zuu

A program to check your code quality before all commit

42 releases (17 stable)

8.0.1 Jan 26, 2024
7.2.1 Jan 19, 2024
6.0.0 Jan 14, 2024
5.0.6 Jan 7, 2024
0.0.4 Feb 15, 2023

#56 in Testing

Download history 36/week @ 2023-11-02 26/week @ 2023-11-09 7/week @ 2023-11-16 90/week @ 2023-11-23 48/week @ 2023-11-30 9/week @ 2023-12-07 23/week @ 2023-12-14 103/week @ 2023-12-21 99/week @ 2023-12-28 153/week @ 2024-01-04 174/week @ 2024-01-11 123/week @ 2024-01-18 117/week @ 2024-01-25 51/week @ 2024-02-01 88/week @ 2024-02-08 723/week @ 2024-02-15

982 downloads per month

GPL-2.0-or-later

43KB
228 lines

What it's ?

logo

Zuu will perform certain code tests at the time of the commit.

If the tests fail, you will not be able to validate your modifications until all the checks are successful.

If all controls are successful, a git program will be automatically executed to validate your change, if the controls have failures, ranger is executed in the zuu directory to see all failures.

You can also run the tests yourself to find out if everything is working properly.

Watch mode is available.

You can also generate badges for all checkup in different styles.

zuu continuous

audit check clippy format test

Version Download

Installation

cargo install zuu rsbadges

Archlinux install

Aur version Aur last modified Aur votes Aur maintainer Aur license

paru -S zuu

Using docker compose

version: '3'
services:
  zuu:
    environment:
      TERM: xterm-color
    image: taishingi/zuu:latest
    volumes:
      - .:/app

Run tests

docker-compose up

Kill tests container

docker-compose down

GitHub workflow

name: zuu
on:
  push:
    branches: [ "master" , "develop" ]
  pull_request:
    branches: [ "master" , "develop"  ]
env:
  CARGO_TERM_COLOR: always
  TERM: xterm-256color
jobs:
  zuu:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - name: deps
      run: sudo apt-get install -y wget && wget https://raw.githubusercontent.com/taishingi/zuu/master/pre-commit
    - name: zuu
      run: bash pre-commit

Requirement

  • wget
  • git
  • rsbadges
  • cargo-audit
  • rustup
  • docker-compose
  • docker
  • ncurses

Support versioning

  • Git
  • Mercurial

Track repository

git init
zuu init

Usage

git add .
git commit -m "commit msg"

Manual usage

zuu
zuu watch
zuu watch 10

Time is in seconds

Upgrade the hook file

zuu update

Display help

zuu help

Generate badges

zuu badges

Structure of the project

.
├── badges
  ├── flat
  │  ├── audit.svg
  │  ├── check.svg
  │  ├── clippy.svg
  │  ├── fmt.svg
  │  ├── test.svg
  │  └── verify-project.svg
  ├── flatsquare
  │  ├── audit.svg
  │  ├── check.svg
  │  ├── clippy.svg
  │  ├── fmt.svg
  │  ├── test.svg
  │  └── verify-project.svg
  ├── forthebadge
  │  ├── audit.svg
  │  ├── check.svg
  │  ├── clippy.svg
  │  ├── fmt.svg
  │  ├── test.svg
  │  └── verify-project.svg
  ├── plastic
  │  ├── audit.svg
  │  ├── check.svg
  │  ├── clippy.svg
  │  ├── fmt.svg
  │  ├── test.svg
  │  └── verify-project.svg
  └── social
     ├── audit.svg
     ├── check.svg
     ├── clippy.svg
     ├── fmt.svg
     ├── test.svg
     └── verify-project.svg
├── src
  └── main.rs
├── zuu
  └── git
     └── patch
├── Cargo.toml
├── LICENSE
└── README.md

Email

Donate

Github

No runtime deps