|
40 | 40 | from usethis._tool.impl.base.ruff import RuffTool |
41 | 41 | from usethis._types.backend import BackendEnum |
42 | 42 | from usethis._types.deps import Dependency |
43 | | -from usethis._versions import RUFF_VERSION, SYNC_WITH_UV_VERSION |
| 43 | +from usethis._versions import FALLBACK_RUFF_VERSION, FALLBACK_SYNC_WITH_UV_VERSION |
44 | 44 |
|
45 | 45 |
|
46 | 46 | class TestAllHooksList: |
@@ -725,7 +725,7 @@ def test_pre_commit_after( |
725 | 725 | f"""\ |
726 | 726 | repos: |
727 | 727 | - repo: https://github.com/tsvikas/sync-with-uv |
728 | | - rev: {SYNC_WITH_UV_VERSION} |
| 728 | + rev: {FALLBACK_SYNC_WITH_UV_VERSION} |
729 | 729 | hooks: |
730 | 730 | - id: sync-with-uv |
731 | 731 | - repo: local |
@@ -893,7 +893,7 @@ def test_pre_commit_first( |
893 | 893 | f"""\ |
894 | 894 | repos: |
895 | 895 | - repo: https://github.com/tsvikas/sync-with-uv |
896 | | - rev: {SYNC_WITH_UV_VERSION} |
| 896 | + rev: {FALLBACK_SYNC_WITH_UV_VERSION} |
897 | 897 | hooks: |
898 | 898 | - id: sync-with-uv |
899 | 899 | - repo: local |
@@ -1907,7 +1907,7 @@ def test_fresh(self, uv_init_dir: Path, capfd: pytest.CaptureFixture[str]): |
1907 | 1907 | f"""\ |
1908 | 1908 | repos: |
1909 | 1909 | - repo: https://github.com/tsvikas/sync-with-uv |
1910 | | - rev: {SYNC_WITH_UV_VERSION} |
| 1910 | + rev: {FALLBACK_SYNC_WITH_UV_VERSION} |
1911 | 1911 | hooks: |
1912 | 1912 | - id: sync-with-uv |
1913 | 1913 | """ |
@@ -1985,7 +1985,7 @@ def test_config_file_already_exists(self, uv_init_repo_dir: Path): |
1985 | 1985 | entry: uv run --isolated --frozen --offline python -c "print('hello world!')" |
1986 | 1986 | language: system |
1987 | 1987 | - repo: https://github.com/tsvikas/sync-with-uv |
1988 | | - rev: {SYNC_WITH_UV_VERSION} |
| 1988 | + rev: {FALLBACK_SYNC_WITH_UV_VERSION} |
1989 | 1989 | hooks: |
1990 | 1990 | - id: sync-with-uv |
1991 | 1991 | """ |
@@ -3435,7 +3435,7 @@ def test_pre_commit( |
3435 | 3435 | f"""\ |
3436 | 3436 | repos: |
3437 | 3437 | - repo: https://github.com/tsvikas/sync-with-uv |
3438 | | - rev: {SYNC_WITH_UV_VERSION} |
| 3438 | + rev: {FALLBACK_SYNC_WITH_UV_VERSION} |
3439 | 3439 | hooks: |
3440 | 3440 | - id: sync-with-uv |
3441 | 3441 | - repo: local |
@@ -3961,11 +3961,11 @@ def test_add_only_linter( |
3961 | 3961 | f"""\ |
3962 | 3962 | repos: |
3963 | 3963 | - repo: https://github.com/tsvikas/sync-with-uv |
3964 | | - rev: {SYNC_WITH_UV_VERSION} |
| 3964 | + rev: {FALLBACK_SYNC_WITH_UV_VERSION} |
3965 | 3965 | hooks: |
3966 | 3966 | - id: sync-with-uv |
3967 | 3967 | - repo: https://github.com/astral-sh/ruff-pre-commit |
3968 | | - rev: {RUFF_VERSION} |
| 3968 | + rev: {FALLBACK_RUFF_VERSION} |
3969 | 3969 | hooks: |
3970 | 3970 | - id: ruff-check |
3971 | 3971 | """ |
@@ -3999,15 +3999,15 @@ def test_add_only_linter_to_existing_formatter( |
3999 | 3999 | f"""\ |
4000 | 4000 | repos: |
4001 | 4001 | - repo: https://github.com/tsvikas/sync-with-uv |
4002 | | - rev: {SYNC_WITH_UV_VERSION} |
| 4002 | + rev: {FALLBACK_SYNC_WITH_UV_VERSION} |
4003 | 4003 | hooks: |
4004 | 4004 | - id: sync-with-uv |
4005 | 4005 | - repo: https://github.com/astral-sh/ruff-pre-commit |
4006 | | - rev: {RUFF_VERSION} |
| 4006 | + rev: {FALLBACK_RUFF_VERSION} |
4007 | 4007 | hooks: |
4008 | 4008 | - id: ruff-check |
4009 | 4009 | - repo: https://github.com/astral-sh/ruff-pre-commit |
4010 | | - rev: {RUFF_VERSION} |
| 4010 | + rev: {FALLBACK_RUFF_VERSION} |
4011 | 4011 | hooks: |
4012 | 4012 | - id: ruff-format |
4013 | 4013 | """ |
@@ -4040,11 +4040,11 @@ def test_add_only_formatter( |
4040 | 4040 | f"""\ |
4041 | 4041 | repos: |
4042 | 4042 | - repo: https://github.com/tsvikas/sync-with-uv |
4043 | | - rev: {SYNC_WITH_UV_VERSION} |
| 4043 | + rev: {FALLBACK_SYNC_WITH_UV_VERSION} |
4044 | 4044 | hooks: |
4045 | 4045 | - id: sync-with-uv |
4046 | 4046 | - repo: https://github.com/astral-sh/ruff-pre-commit |
4047 | | - rev: {RUFF_VERSION} |
| 4047 | + rev: {FALLBACK_RUFF_VERSION} |
4048 | 4048 | hooks: |
4049 | 4049 | - id: ruff-format |
4050 | 4050 | """ |
@@ -4078,11 +4078,11 @@ def test_remove_only_linter( |
4078 | 4078 | f"""\ |
4079 | 4079 | repos: |
4080 | 4080 | - repo: https://github.com/tsvikas/sync-with-uv |
4081 | | - rev: {SYNC_WITH_UV_VERSION} |
| 4081 | + rev: {FALLBACK_SYNC_WITH_UV_VERSION} |
4082 | 4082 | hooks: |
4083 | 4083 | - id: sync-with-uv |
4084 | 4084 | - repo: https://github.com/astral-sh/ruff-pre-commit |
4085 | | - rev: {RUFF_VERSION} |
| 4085 | + rev: {FALLBACK_RUFF_VERSION} |
4086 | 4086 | hooks: |
4087 | 4087 | - id: ruff-format |
4088 | 4088 | """ |
|
0 commit comments