Python
undefined
Solutions
1:
mkdir myproject && cd myproject
2:,
python -m venv .venv
3: (Windows.venv\Scripts\activate)
source .venv/bin/activate
4: pip New,
pip install --upgrade pip
5: and
mkdir src tests
6: and
touch src/__init__.py src/main.py tests/__init__.py tests/test_main.py
7:,
pip install ruff pytest mypy
8:
pip freeze > requirements.txt
9:.gitignore
echo '.venv/ __pycache__/ *.pyc .mypy_cache/' > .gitignore
10: Git
git init && git add -A && git commit -m 'init: '