Skip to content

Commit

Permalink
remove differ
Browse files Browse the repository at this point in the history
  • Loading branch information
carderne committed Aug 22, 2024
1 parent 964f38b commit d947ea1
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 167 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Una

<div align="center">
<img src="docs/assets/logo.svg" width="100">
<img src="https://raw.githubusercontent.com/carderne/una/main/docs/assets/logo.svg" alt="Una logo" width="100" role="img">
<p>Easy monorepos with Python</p>
</div>

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Una

<div align="center">
<img src="https://raw.githubusercontent.com/carderne/una/main/docs/assets/logo.svg" width="100">
<img src="assets/logo.svg" width="100">
<p>Easy monorepos with Python</p>
</div>

Expand Down
23 changes: 0 additions & 23 deletions tests/test_diff.py

This file was deleted.

11 changes: 1 addition & 10 deletions una/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from rich.console import Console
from typer import Argument, Exit, Option, Typer

from una import check, config, defaults, differ, external_deps, files, internal_deps, sync
from una import check, config, defaults, external_deps, files, internal_deps, sync
from una.types import Options, Style

app = Typer(name="una", no_args_is_help=True, add_completion=False)
Expand Down Expand Up @@ -43,15 +43,6 @@ def info_command(
raise Exit(code=1)


@app.command("diff")
def diff_command(
since: Annotated[str, Option(help="Changed since a specific tag.")] = "",
int_deps: Annotated[bool, Option(help="Print changed int_deps.")] = False,
):
"""Shows changed int_deps compared to the latest git tag."""
differ.calc_diff(since, int_deps)


@app.command("sync")
def sync_command(
check_only: Annotated[bool, Option(help="Only check, make no changes")] = False,
Expand Down
8 changes: 0 additions & 8 deletions una/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,6 @@ def get_style(path: Path) -> Style:
return load_conf(path).tool.una.style


def get_tag_pattern(key: str | None) -> str:
return "v*"


def get_tag_sort_options() -> list[str]:
return ["-committerdate"]


def get_int_dep_structure(root: Path) -> str:
root_conf = load_conf(root)
style = root_conf.tool.una.style
Expand Down
124 changes: 0 additions & 124 deletions una/differ.py

This file was deleted.

0 comments on commit d947ea1

Please sign in to comment.