Project Scaffolding

Generate project templates with lint CI and structure

LoopyLuci Updated 1 repo stars

File contents

Project Scaffolding

Python Package Template

mkdir myproject && cd myproject
mkdir src/myproject tests
touch src/myproject/__init__.py src/myproject/main.py
touch tests/__init__.py tests/test_main.py

Essential Files

cat > README.md << 'EOF'
# Project
EOF
cat > .gitignore << 'EOF'
__pycache__/ .venv/ .env dist/
EOF

CI Template

# .github/workflows/ci.yml
name: CI
on: [push, pull_request]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v5
      - run: pip install -e ".[dev]"
      - run: pytest
      - run: ruff check .

LoopyLuci/Skills/tree/main/skills/project-scaffolding commit b31e3ba0b6

Frequently asked questions

npx skillmds@latest add loopyluci/project-scaffolding