diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-02-24 13:47:31 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-02-24 13:47:31 +0000 |
| commit | 22d82ba3c0d6bd591c135290d88adcc2414ba588 (patch) | |
| tree | 98dacd9f46560513d2869207b7f13a8ca9294ba2 /tools | |
| parent | e5819ceb55106d4b9b8d34d4d4e031b2a895b760 (diff) | |
| parent | fc438e6a84402e621877f6c30097442af46f122b (diff) | |
Update upstream source from tag 'upstream/20240224'
Update to upstream version '20240224'
with Debian dir f7af8ad341f9d73e94489b1e0a1b6e721fc7f61d
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/check_commit.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/check_commit.sh b/tools/check_commit.sh index 84b69db..4a6d68d 100755 --- a/tools/check_commit.sh +++ b/tools/check_commit.sh @@ -34,7 +34,7 @@ if grep -E '\wfuture\w' added_lines; then fail No new uses of future fi -if grep -E '(from|import).*past' added_lines; then +if grep -E '(from|import).*past(?!e)' added_lines; then fail Use of past library not allowed fi @@ -46,6 +46,10 @@ if grep -E "[^_]_\([^\"']" added_lines; then fail 'Translated strings must be literals!' fi +if grep -E "eval\(" added_lines; then + fail 'Use of eval() is dangerous and not permitted!' +fi + if git diff ${BASE}.. 'tools/cpep8.manifest' | tail -n +5 | grep -q '^+'; then fail 'Do not add new files to cpep8.manifest; no longer needed' fi @@ -98,4 +102,6 @@ for nf in $added_py; do done done +rm -f added_lines license_lines + exit $RETCODE |
