Skip to content

refactor: restructure codebase to src layout#34

Merged
DSuveges merged 1 commit intomasterfrom
repo_restructure
Feb 9, 2026
Merged

refactor: restructure codebase to src layout#34
DSuveges merged 1 commit intomasterfrom
repo_restructure

Conversation

@DSuveges
Copy link
Copy Markdown
Owner

@DSuveges DSuveges commented Feb 9, 2026

Context

  • Move package code to src/genome_plotter/
  • Move tests to src/tests/
  • Update all imports to use new package paths
  • Add CLI entry points: prepare-data, plot-chromosome
  • Update pyproject.toml with src layout configuration
  • Update GitHub Actions workflows for new test paths
  • Fix various linting issues (undefined logger, unused variables)

New structure

  src/
  ├── genome_plotter/
  │   ├── __init__.py
  │   ├── config.json
  │   ├── logger_config.yaml
  │   ├── prepare_data.py
  │   ├── plot_chromosome.py
  │   ├── functions/
  │   │   ├── ChromosomePlotter.py
  │   │   ├── ColorFunctions.py
  │   │   ├── ConfigManager.py
  │   │   └── ... (other modules)
  │   └── input_parsers/
  │       ├── data_integrator.py
  │       ├── fetch_cytobands.py
  │       └── ... (other modules)
  └── tests/
      ├── __init__.py
      ├── test_color_fun.py
      └── test_config_manager.py

CLI entry points

  • prepare-data → genome_plotter.prepare_data:main
  • plot-chromosome → genome_plotter.plot_chromosome:main

- Move package code to src/genome_plotter/
- Move tests to src/tests/
- Update all imports to use new package paths
- Add CLI entry points: prepare-data, plot-chromosome
- Update pyproject.toml with src layout configuration
- Update GitHub Actions workflows for new test paths
- Fix various linting issues (undefined logger, unused variables)
@codecov-commenter
Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@DSuveges DSuveges merged commit 0974e3e into master Feb 9, 2026
3 checks passed
@DSuveges DSuveges deleted the repo_restructure branch February 9, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants