Skip to content

Commit

Permalink
rename PyGitHooks => PyGitHook
Browse files Browse the repository at this point in the history
  • Loading branch information
palotasb committed Apr 7, 2024
1 parent 376d451 commit b47ad4d
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 33 deletions.
34 changes: 17 additions & 17 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
3 changes: 3 additions & 0 deletions pkg/pygithook/pygithook/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from pygithook._pygithook import main

__all__ = ["main"]
4 changes: 4 additions & 0 deletions pkg/pygithook/pygithook/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from pygithook._pygithook import main

if __name__ == "__main__":
main()
File renamed without changes.
10 changes: 5 additions & 5 deletions pkg/pygithooks/pyproject.toml → pkg/pygithook/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "PyGitHooks"
description = "PyGitHooks - Simple Git Hooks manager for Python projects"
name = "PyGitHook"
description = "PyGitHook - Simple Git Hooks manager for Python projects"
authors = [
{ name = "Boldizsár Palotás", email = "[email protected]" },
]
Expand All @@ -15,20 +15,20 @@ dependencies = [
]

[project.scripts]
pygithooks = "pygithooks:main"
pygithook = "pygithook:main"

[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

[tool.hatch.build]
packages = ["pygithooks"]
packages = ["pygithook"]

[tool.hatch.metadata.hooks.custom]
path = "hatch_hooks.py"

[tool.hatch.build.hooks.vcs]
version-file = "pygithooks/_version.py"
version-file = "pygithook/_version.py"

[tool.hatch.version]
source = "vcs"
Expand Down
3 changes: 0 additions & 3 deletions pkg/pygithooks/pygithooks/__init__.py

This file was deleted.

4 changes: 0 additions & 4 deletions pkg/pygithooks/pygithooks/__main__.py

This file was deleted.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dev = [
"-e boldi-plugins @ {root:uri}/pkg/boldi-plugins",
"-e boldi-proc @ {root:uri}/pkg/boldi-proc",
"-e boldi-webalbum @ {root:uri}/pkg/boldi-webalbum",
"-e PyGitHooks @ {root:uri}/pkg/pygithooks",
"-e PyGitHook @ {root:uri}/pkg/pygithook",
# building and packaging:
"pdm",
"hatch",
Expand All @@ -59,7 +59,7 @@ extend-select = [

[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["boldi", "boldi.*", "pygithooks", "pygithooks.*"]
known-first-party = ["boldi", "boldi.*", "pygithook", "pygithook.*"]

[tool.mypy]
packages = [
Expand All @@ -71,9 +71,9 @@ packages = [
"boldi.plugins",
"boldi.proc",
"boldi.webalbum",
"pygithooks",
"pygithook",
]
mypy_path = "pkg/boldi:pkg/boldi-backup:pkg/boldi-build:pkg/boldi-cli:pkg/boldi-ctx:pkg/boldi-plugins:pkg/boldi-proc:pkg/boldi-webalbum:pkg/pygithooks"
mypy_path = "pkg/boldi:pkg/boldi-backup:pkg/boldi-build:pkg/boldi-cli:pkg/boldi-ctx:pkg/boldi-plugins:pkg/boldi-proc:pkg/boldi-webalbum:pkg/pygithook"

[tool.pyright]
venvPath = "."
Expand Down

0 comments on commit b47ad4d

Please sign in to comment.