Skip to content

Day 26 — Clean Python project structure #16

Description

@Kirill-A-dev

Day 26 — Clean Python project structure

Goal

Improve the project structure and separate application code from tests.

The goal is to make the project look closer to a real Python repository.

Tasks

  • Create a new folder day26
  • Create an app/ folder
  • Move CLI logic into app/service_cli.py
  • Create a tests/ folder
  • Move tests into tests/test_service_cli.py
  • Fix imports
  • Run pytest
  • Check that GitHub Actions still works
  • Add day26/README.md
  • Update main README.md
  • Commit and push changes

Practice topics

  • Python project layout
  • separating app code and tests
  • imports
  • test discovery
  • repository structure
  • maintainable project organization

Expected result

Project has a cleaner structure:

day26/
├── app/
│   └── service_cli.py
├── tests/
│   └── test_service_cli.py
├── services.json
└── README.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions