dycw-actions 0.3.2__py3-none-any.whl → 0.6.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- actions/__init__.py +1 -1
- actions/action_dicts/constants.py +8 -0
- actions/action_dicts/lib.py +186 -0
- actions/clean_dir/cli.py +33 -0
- actions/clean_dir/lib.py +59 -0
- actions/clean_dir/settings.py +18 -0
- actions/cli.py +44 -6
- actions/conformalize_repo/cli.py +76 -0
- actions/conformalize_repo/configs/gitignore +244 -0
- actions/conformalize_repo/constants.py +72 -0
- actions/conformalize_repo/lib.py +1522 -0
- actions/conformalize_repo/settings.py +119 -0
- actions/constants.py +10 -0
- actions/format_requirements/__init__.py +1 -0
- actions/format_requirements/cli.py +37 -0
- actions/format_requirements/lib.py +121 -0
- actions/publish_package/__init__.py +1 -0
- actions/{publish → publish_package}/cli.py +6 -10
- actions/publish_package/doc.py +6 -0
- actions/{publish → publish_package}/lib.py +17 -16
- actions/{publish → publish_package}/settings.py +7 -7
- actions/random_sleep/__init__.py +1 -0
- actions/{sleep → random_sleep}/cli.py +6 -10
- actions/random_sleep/doc.py +6 -0
- actions/{sleep → random_sleep}/lib.py +14 -13
- actions/{sleep → random_sleep}/settings.py +3 -3
- actions/replace_sequence_strs/__init__.py +1 -0
- actions/replace_sequence_strs/cli.py +37 -0
- actions/replace_sequence_strs/lib.py +79 -0
- actions/run_hooks/__init__.py +1 -0
- actions/run_hooks/cli.py +33 -0
- actions/run_hooks/doc.py +6 -0
- actions/run_hooks/lib.py +97 -0
- actions/run_hooks/settings.py +24 -0
- actions/setup_cronjob/__init__.py +1 -0
- actions/setup_cronjob/cli.py +43 -0
- actions/setup_cronjob/configs/cron.tmpl +3 -0
- actions/setup_cronjob/configs/logrotate.tmpl +10 -0
- actions/setup_cronjob/constants.py +8 -0
- actions/setup_cronjob/lib.py +120 -0
- actions/setup_cronjob/settings.py +27 -0
- actions/tag_commit/__init__.py +1 -0
- actions/{tag → tag_commit}/cli.py +6 -10
- actions/tag_commit/doc.py +6 -0
- actions/tag_commit/lib.py +63 -0
- actions/{tag → tag_commit}/settings.py +3 -3
- actions/types.py +11 -1
- actions/utilities.py +68 -8
- dycw_actions-0.6.4.dist-info/METADATA +21 -0
- dycw_actions-0.6.4.dist-info/RECORD +56 -0
- {dycw_actions-0.3.2.dist-info → dycw_actions-0.6.4.dist-info}/WHEEL +1 -1
- actions/settings.py +0 -18
- actions/tag/lib.py +0 -62
- dycw_actions-0.3.2.dist-info/METADATA +0 -14
- dycw_actions-0.3.2.dist-info/RECORD +0 -22
- /actions/{publish → action_dicts}/__init__.py +0 -0
- /actions/{sleep → clean_dir}/__init__.py +0 -0
- /actions/{tag → conformalize_repo}/__init__.py +0 -0
- {dycw_actions-0.3.2.dist-info → dycw_actions-0.6.4.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
from re import search
|
|
5
|
+
|
|
6
|
+
from utilities.pathlib import get_repo_root
|
|
7
|
+
from utilities.pytest import IS_CI
|
|
8
|
+
|
|
9
|
+
from actions.constants import PATH_ACTIONS
|
|
10
|
+
|
|
11
|
+
ACTIONS_URL = "https://github.com/dycw/actions"
|
|
12
|
+
DOCKERFMT_URL = "https://github.com/reteps/dockerfmt"
|
|
13
|
+
PRE_COMMIT_HOOKS_URL = "https://github.com/pre-commit/pre-commit-hooks"
|
|
14
|
+
RUFF_URL = "https://github.com/astral-sh/ruff-pre-commit"
|
|
15
|
+
SHELLCHECK_URL = "https://github.com/koalaman/shellcheck-precommit"
|
|
16
|
+
SHFMT_URL = "https://github.com/scop/pre-commit-shfmt"
|
|
17
|
+
TAPLO_URL = "https://github.com/compwa/taplo-pre-commit"
|
|
18
|
+
UV_URL = "https://github.com/astral-sh/uv-pre-commit"
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
BUMPVERSION_TOML = Path(".bumpversion.toml")
|
|
22
|
+
COVERAGERC_TOML = Path(".coveragerc.toml")
|
|
23
|
+
ENVRC = Path(".envrc")
|
|
24
|
+
GITIGNORE = Path(".gitignore")
|
|
25
|
+
PRE_COMMIT_CONFIG_YAML = Path(".pre-commit-config.yaml")
|
|
26
|
+
PYPROJECT_TOML = Path("pyproject.toml")
|
|
27
|
+
PYRIGHTCONFIG_JSON = Path("pyrightconfig.json")
|
|
28
|
+
PYTEST_TOML = Path("pytest.toml")
|
|
29
|
+
README_MD = Path("README.md")
|
|
30
|
+
REPO_ROOT = get_repo_root()
|
|
31
|
+
RUFF_TOML = Path("ruff.toml")
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
MAX_PYTHON_VERSION = "3.14"
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
RUN_VERSION_BUMP = (search("template", str(REPO_ROOT)) is None) and not IS_CI
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
GITHUB_WORKFLOWS = Path(".github/workflows")
|
|
41
|
+
GITHUB_PULL_REQUEST_YAML = GITHUB_WORKFLOWS / "pull-request.yaml"
|
|
42
|
+
GITHUB_PUSH_YAML = GITHUB_WORKFLOWS / "push.yaml"
|
|
43
|
+
PATH_CONFIGS = PATH_ACTIONS / "conformalize_repo/configs"
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
__all__ = [
|
|
47
|
+
"ACTIONS_URL",
|
|
48
|
+
"BUMPVERSION_TOML",
|
|
49
|
+
"COVERAGERC_TOML",
|
|
50
|
+
"DOCKERFMT_URL",
|
|
51
|
+
"ENVRC",
|
|
52
|
+
"GITHUB_PULL_REQUEST_YAML",
|
|
53
|
+
"GITHUB_PUSH_YAML",
|
|
54
|
+
"GITHUB_WORKFLOWS",
|
|
55
|
+
"GITIGNORE",
|
|
56
|
+
"MAX_PYTHON_VERSION",
|
|
57
|
+
"PATH_CONFIGS",
|
|
58
|
+
"PRE_COMMIT_CONFIG_YAML",
|
|
59
|
+
"PRE_COMMIT_HOOKS_URL",
|
|
60
|
+
"PYPROJECT_TOML",
|
|
61
|
+
"PYRIGHTCONFIG_JSON",
|
|
62
|
+
"PYTEST_TOML",
|
|
63
|
+
"README_MD",
|
|
64
|
+
"REPO_ROOT",
|
|
65
|
+
"RUFF_TOML",
|
|
66
|
+
"RUFF_URL",
|
|
67
|
+
"RUN_VERSION_BUMP",
|
|
68
|
+
"SHELLCHECK_URL",
|
|
69
|
+
"SHFMT_URL",
|
|
70
|
+
"TAPLO_URL",
|
|
71
|
+
"UV_URL",
|
|
72
|
+
]
|