Skip to content

Commit

Permalink
refactor: Completely refactor project
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Dec 22, 2024
1 parent 23c3e7a commit 7c080a3
Show file tree
Hide file tree
Showing 26 changed files with 2,790 additions and 940 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Gitter = "https://gitter.im/insiders/community"
Funding = "https://github.com/sponsors/pawamoy"

[project.scripts]
insiders = "insiders.cli:main"
insiders = "insiders:main"

[tool.pdm]
version = {source = "scm"}
Expand Down
27 changes: 22 additions & 5 deletions src/insiders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,26 @@

from __future__ import annotations

__all__: list[str] = []
from insiders._internal.cli import main
from insiders._internal.clients.github import GitHub
from insiders._internal.clients.index import Index
from insiders._internal.clients.polar import Polar
from insiders._internal.models import Account, Backlog, Issue, IssueDict, Org, Sponsors, Sponsorship, User
from insiders._internal.ops.backlog import get_backlog, print_backlog

# TODO: Reorganize code by platform (GitHub, Polar, etc).
# Then create an aggregation module (for example, augmenting GitHub issues with Polar data).
# Then create higher modules for each concept (sponsors, backlog, etc).
# Hook everything up in the CLI.
__all__: list[str] = [
"Account",
"Backlog",
"GitHub",
"Index",
"Issue",
"IssueDict",
"Org",
"Polar",
"Sponsors",
"Sponsorship",
"User",
"get_backlog",
"main",
"print_backlog",
]
2 changes: 1 addition & 1 deletion src/insiders/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import sys

from insiders.cli import main
from insiders._internal.cli import main

if __name__ == "__main__":
sys.exit(main(sys.argv[1:]))
Empty file.
Loading

0 comments on commit 7c080a3

Please sign in to comment.