-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implement --remove flag. * Consistency in whether to include quotes in pre-commit conifg YAML rev * Use example email in github actions * Consistency in use of double quotes in YAML * Fix test in case of empty pre-commit repo list
- Loading branch information
1 parent
d4364b8
commit 9c4ba37
Showing
10 changed files
with
481 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import subprocess | ||
from pathlib import Path | ||
|
||
import pytest | ||
from git import Repo | ||
|
||
|
||
@pytest.fixture(scope="function") | ||
def uv_init_dir(tmp_path: Path) -> Path: | ||
subprocess.run(["uv", "init", "--lib"], cwd=tmp_path, check=True) | ||
return tmp_path | ||
|
||
|
||
@pytest.fixture(scope="function") | ||
def uv_init_repo_dir(tmp_path: Path) -> Path: | ||
subprocess.run(["uv", "init", "--lib"], cwd=tmp_path, check=True) | ||
Repo.init(tmp_path) | ||
return tmp_path |
Oops, something went wrong.