Skip to content

Commit a88182d

Browse files
committed
Linting.
1 parent 3cc3bf6 commit a88182d

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

repo_helper/cli/commands/builder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
# 3rd party
3030
import click
31+
from domdf_python_tools.typing import PathLike
3132

3233
# this package
3334
from repo_helper.cli import cli_command
@@ -45,7 +46,7 @@
4546
@autocomplete_option("-c", "--conda", is_flag=True, default=False, help="Build a conda distribution.")
4647
@cli_command()
4748
def build(
48-
repository: str = '.',
49+
repository: PathLike = '.',
4950
build_dir: Optional[str] = None,
5051
out_dir: Optional[str] = None,
5152
binary: bool = False,

tests/test_core.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,6 @@
2626
@pytest.mark.skipif(condition=os.sep == "\\", reason="Different test for platforms where os.sep == \\")
2727
def test_via_run_repo_helper_forward(temp_empty_repo, capsys, file_regression: FileRegressionFixture, monkeypatch):
2828

29-
# Monkeypatch dulwich so it doesn't try to use the global config.
30-
monkeypatch.setattr(StackedConfig, "default_backends", lambda *args: [], raising=True)
31-
monkeypatch.setenv("GIT_COMMITTER_NAME", "Guido")
32-
monkeypatch.setenv("GIT_COMMITTER_EMAIL", "[email protected]")
33-
monkeypatch.setenv("GIT_AUTHOR_NAME", "Guido")
34-
monkeypatch.setenv("GIT_AUTHOR_EMAIL", "[email protected]")
35-
36-
monkeypatch.setattr(repo_helper.utils, "today", FAKE_DATE)
37-
38-
(temp_empty_repo.path / ".pre-commit-config.yaml").touch()
39-
4029
(temp_empty_repo.path / "repo_helper.yml").write_text(
4130
(pathlib.Path(__file__).parent / "repo_helper.yml_").read_text()
4231
)
@@ -71,8 +60,6 @@ def test_via_run_repo_helper_backward(
7160

7261
monkeypatch.setattr(repo_helper.utils, "today", FAKE_DATE)
7362

74-
(temp_empty_repo.path / ".pre-commit-config.yaml").touch()
75-
7663
(temp_empty_repo.path / "repo_helper.yml").write_text(
7764
(pathlib.Path(__file__).parent / "repo_helper.yml_").read_text()
7865
)

0 commit comments

Comments
 (0)