Akagi201 / micro-py

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

micro-py

Python CI Super Linter

Features

  • argparse - command line arguments
  • pdm - package manager(国人项目,很棒,哎可惜老外们不支持)
  • poetry - package manager
  • attrs - class decorators
  • black - code formatter
  • ruff - code linter
  • pytest - testing framework
  • loguru - simple and structured logging
  • requests - python client
  • pipx - install and run python applications in isolated environments
  • mypy - static type checker
  • httpx - next generation http client

Libs

  • loguru - simple and structured logging

Tools

src layout vs flat layout

Sage

mamba create -n sage sage python=X        # either
conda create -n sage sage python=X
conda activate sage
sage

pipx

pip install pipx
pipx ensurepath

poetry

pipx install poetry

vscode configs

use in-project virtualenv

poetry config virtualenvs.in-project true

remove global virtualenvs

poetry env list
poetry env remove <current environment>
poetry config virtualenvs.in-project true
poetry install

vscode python extension select the in-project interpreter

cmd + shift + p
>Python: Select Interpreter

About

License:Apache License 2.0


Languages

Language:Python 100.0%