Skip to main content

toolchain-python

Python project toolchain -- venv, pip, testing, linting, packaging, and debugging.

소스 정보

저장소
ThinkfleetAI/thinkfleet-engine
최근 소스 활동
2026년 2월 1일 16:21
감지된 SKILL.md 언어
영어
스타
0
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
toolchain-python
description
Python project toolchain -- venv, pip, testing, linting, packaging, and debugging.
metadata
{"thinkfleetbot":{"emoji":"🐍","requires":{"bins":"[Truncated]"}}}
# Python Toolchain Common commands for Python projects. ## Virtual environments ```bash python3 -m venv .venv source .venv/bin/activate pip install -r requirements.txt ``` ```bash # Poetry poetry install poetry shell poetry add requests poetry add --group dev pytest ``` ```bash # uv (fast) uv venv uv pip install -r requirements.txt uv pip install requests ``` ## Testing ```bash # pytest python3 -m pytest python3 -m pytest -v --tb=short python3 -m pytest tests/test_api.py -k "test_login" python3 -m pytest --cov=src --cov-report=term-missing # unittest python3 -m unittest discover -s tests ``` ## Linting & formatting ```bash # Ruff (fast, replaces flake8+isort+black) ruff check . ruff check --fix . ruff format . # Black black . # Mypy (type checking) mypy src/ ``` ## Running ```bash python3 src/main.py python3 -m mypackage # Flask flask run --debug # Django python3 manage.py runserver python3 manage.py migrate python3 manage.py createsuperuser ``` ## Debugging ```bash python3 -m pdb src/main.py # PDB debugger python3 -c "import sys; print(sys.version)" python3 -c "import pkg; print(pkg.__version__)" ``` ## Packaging ```bash pip install build python3 -m build # Build wheel + sdist pip install -e . # Editable install ``` ## Dependencies ```bash pip list --outdated pip freeze > requirements.txt pip-audit # Security audit ``` ## Notes - Check for `pyproject.toml`, `setup.py`, or `requirements.txt` to understand project structure. - Prefer virtual environments to avoid global package conflicts. - Use `python3` explicitly (not `python`) for portability.
GitHub에서 보기