Commit graph

10 commits

Author SHA1 Message Date
Dan Smith
97d8af35ff Avoid confusing __( for _( in check_commit 2023-03-14 21:28:20 -07:00
Dan Smith
360d75e995 Add warning to top of cpep8.manifest 2023-03-10 18:07:04 -08:00
Dan Smith
f2052d66ac Fix untranslatable driver prompt strings
Long ago, an anti-pattern was introduced by a driver whereby the prompt
string were marked for translation, but wrapped around a call to
dedent() for formatting. In order for gettext to pick up the strings
when building the catalog, the actual literals must be marked. Even
though the gettext call works at runtime, the static analysis does not
understand enough python to push through that call.

This is the first step of re-writing all those instances to avoid
using dedent() and instead use multiple string lines inside the gettext
call. This was done en masse, so it's possible that some of this is
not right, but it's a good start and much more reasonable than doing
it manually in so many places.

This also includes a dumb rule in check_commit.sh to help prevent
future introduction of this, although it won't catch all cases.

Related to #10434
2023-03-10 15:48:15 -08:00
Dan Smith
ed829f5b4b Check patches to see if locale files need update
This makes msgmerge use sorted output to make the files stable.
2023-03-06 18:15:14 -08:00
Dan Smith
c4f0c614c9 Updates to check-patch job
Log the base and commits we are checking and also relax the
check for merges, since we seem to not be catching them in the
github workflow.
2023-02-23 16:01:43 -08:00
Dan Smith
548101122d Check for merge commits in PRs 2023-01-28 08:51:26 -08:00
Dan Smith
c83d09343c Fix check-patch CRLF detection 2023-01-15 21:33:37 -08:00
Dan Smith
2c125a1ba5 Make check_commit detect CRLF files 2023-01-15 21:10:17 -08:00
Dan Smith
502e982a64 Add MemoryMapBytes to check_commit.sh
Make sure we don't add new drivers with non-byte-clean MemoryMap
objects.
2023-01-04 15:13:33 -08:00
Dan Smith
3641406a9b Add check_commit.sh and github action
This enforces some commit requirements, such as not adding new code
that relies on py2 compatibility.
2022-12-31 11:01:11 -08:00