Skip to content

Commit

Permalink
Revert "get rid of the jg directory"
Browse files Browse the repository at this point in the history
This reverts commit 92f172b.
  • Loading branch information
honzajavorek committed Apr 11, 2024
1 parent 92f172b commit 85f5122
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion hen/cli.py → jg/hen/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import click

from hen.core import check_profile_url
from jg.hen.core import check_profile_url


@click.command()
Expand Down
2 changes: 1 addition & 1 deletion hen/core.py → jg/hen/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async def check_profile_url(
try:
username = parse_username(profile_url)

import hen.rules # noqa
import jg.hen.rules # noqa

response = await github.rest.users.async_get_by_username(username)
user = response.parsed_data
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion hen/rules.py → jg/hen/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from githubkit.rest import PublicUser, Repository, SocialAccount
from PIL import Image

from hen.core import (
from jg.hen.core import (
ResultType,
on_avatar_response,
on_pinned_repo,
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ license = "AGPL-3.0-only"
readme = "README.md"
homepage = "https://junior.guru/"
repository = "https://github.com/juniorguru/hen"
packages = [{include = "hen", from = "."}]
packages = [{ include = "jg" }]

[tool.poetry.scripts]
hen = "hen.cli:main"
hen = "jg.hen.cli:main"

[tool.poetry.dependencies]
python = "3.11.*"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_core.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from hen.core import parse_username
from jg.hen.core import parse_username


@pytest.mark.parametrize(
Expand Down

0 comments on commit 85f5122

Please sign in to comment.