Skip to content

waketzheng/fast-dev-cli

Repository files navigation

FastDevCli

Toolkit for python code lint/test/bump ...

Supported Python versions Package version GithubActionResult Coverage Status Mypy Coverage Pyright Checked ty Checked Ruff pdm-managed security: bandit


Source Code: https://github.com/waketzheng/fast-dev-cli

English | 中文

Requirements

Python 3.10+

Features

  • Support uv/pdm/poetry
  • Support MacOS/Linux/Windows

Installation

  • Global install
uv tool install fast-dev-cli
# Or: pipx install fast-dev-cli

*Will create a fast command in ~/.local/bin

  • Install in project
pip install "fast-dev-cli[standard]"

Will install: fast-dev-cli emoji typer packaging pytest coverage

Usage

  • Lint py code:
fast lint [/path/to/file-or-directory]
  • Check only
fast check
  • Bump up version in pyproject.toml(or package.json)
fast bump patch  # 0.1.0 -> 0.1.1
fast bump minor  # 0.1.0 -> 0.2.0
fast bump major  # 0.1.0 -> 1.0.0
fast bump <part> --commit # bump version and run `git commit`
  • Run unittest and report coverage
fast test
  • Install dependencies, support pip/pdm/uv/poetry
fast deps
  • Start a fastapi server in development mode
fast dev
  • Change register of uv.lock to be pypi.org
fast pypi

Note: all command support the --dry option

Use it without installed

uvx --from fast-dev-cli fast

Lint/Check by ty instead of mypy

fast lint --ty
fast check --ty

About

Toolkit for python code lint/test/bump

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors