david30907d / pyproject_template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pyproject template Build Status

Demo

This project use several tools, including

  • pytest
  • isort
  • black
  • mypy
  • bandit
  • safety
  • pylint
  • commitlint

to format our code base and check security issues

Install

  1. Python dependencies:
    1. virtualenv venv; . venv/bin/activate
    2. pip install poetry
    3. poetry install
  2. Npm dependencies, for linter, formatter and commit linter (optional):
    1. brew install npm
    2. npm ci

How to Develop

  1. Commit using commitizen UI: npm run commit

    img

Run

  1. test: npm run test
  2. Run all linter before commitment would save some effort: npm run check

About


Languages

Language:Dockerfile 54.0%Language:Shell 24.8%Language:Python 18.0%Language:JavaScript 3.3%