summaryrefslogtreecommitdiffstats
path: root/testing/gen-languages-all
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-01-30 16:53:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-01-30 16:53:22 +0000
commitce6763317433ca8509f45bd1d471fb4ad2eeffdd (patch)
treea648ad7d54a5d3ffaa8519e7c73ea27541105c9b /testing/gen-languages-all
parentReleasing debian version 2.21.0-1. (diff)
downloadpre-commit-ce6763317433ca8509f45bd1d471fb4ad2eeffdd.tar.xz
pre-commit-ce6763317433ca8509f45bd1d471fb4ad2eeffdd.zip
Merging upstream version 3.0.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/gen-languages-all')
-rwxr-xr-xtesting/gen-languages-all30
1 files changed, 0 insertions, 30 deletions
diff --git a/testing/gen-languages-all b/testing/gen-languages-all
deleted file mode 100755
index 05f8929..0000000
--- a/testing/gen-languages-all
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/env python3
-from __future__ import annotations
-
-import sys
-
-LANGUAGES = (
- 'conda', 'coursier', 'dart', 'docker', 'docker_image', 'dotnet', 'fail',
- 'golang', 'lua', 'node', 'perl', 'pygrep', 'python', 'r', 'ruby', 'rust',
- 'script', 'swift', 'system',
-)
-FIELDS = (
- 'ENVIRONMENT_DIR', 'get_default_version', 'health_check',
- 'install_environment', 'run_hook',
-)
-
-
-def main() -> int:
- print(f' # BEGIN GENERATED ({sys.argv[0]})')
- for lang in LANGUAGES:
- parts = [f' {lang!r}: Language(name={lang!r}']
- for k in FIELDS:
- parts.append(f', {k}={lang}.{k}')
- parts.append('), # noqa: E501')
- print(''.join(parts))
- print(' # END GENERATED')
- return 0
-
-
-if __name__ == '__main__':
- raise SystemExit(main())