--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/translations.py Thu Jun 27 19:28:15 2019 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/translations.py Fri Jun 28 17:51:14 2019 +0200 @@ -526,6 +526,59 @@ "M201": QCoreApplication.translate( "MiscellaneousChecker", "sort keys - '{0}' should be before '{1}'"), + "M301": QCoreApplication.translate( + "MiscellaneousChecker", + "use of 'datetime.datetime()' without 'tzinfo' argument should be" + " avoided"), + "M302": QCoreApplication.translate( + "MiscellaneousChecker", + "use of 'datetime.datetime.today()' should be avoided.\n" + "Use 'datetime.datetime.now(tz=)' instead."), + "M303": QCoreApplication.translate( + "MiscellaneousChecker", + "use of 'datetime.datetime.utcnow()' should be avoided.\n" + "Use 'datetime.datetime.now(tz=)' instead."), + "M304": QCoreApplication.translate( + "MiscellaneousChecker", + "use of 'datetime.datetime.utcfromtimestamp()' should be avoided.\n" + "Use 'datetime.datetime.fromtimestamp(, tz=)' instead."), + "M305": QCoreApplication.translate( + "MiscellaneousChecker", + "use of 'datetime.datetime.now()' without 'tz' argument should be" + " avoided"), + "M306": QCoreApplication.translate( + "MiscellaneousChecker", + "use of 'datetime.datetime.fromtimestamp()' without 'tz' argument" + " should be avoided"), + "M307": QCoreApplication.translate( + "MiscellaneousChecker", + "use of 'datetime.datetime.strptime()' should be followed by" + " '.replace(tzinfo=)'"), + "M308": QCoreApplication.translate( + "MiscellaneousChecker", + "use of 'datetime.datetime.fromordinal()' should be avoided"), + "M311": QCoreApplication.translate( + "MiscellaneousChecker", + "use of 'datetime.date()' should be avoided.\n" + "Use 'datetime.datetime(, tzinfo=).date()' instead."), + "M312": QCoreApplication.translate( + "MiscellaneousChecker", + "use of 'datetime.date.today()' should be avoided.\n" + "Use 'datetime.datetime.now(tz=).date()' instead."), + "M313": QCoreApplication.translate( + "MiscellaneousChecker", + "use of 'datetime.date.fromtimestamp()' should be avoided.\n" + "Use 'datetime.datetime.fromtimestamp(tz=).date()' instead."), + "M314": QCoreApplication.translate( + "MiscellaneousChecker", + "use of 'datetime.date.fromordinal()' should be avoided"), + "M315": QCoreApplication.translate( + "MiscellaneousChecker", + "use of 'datetime.date.fromisoformat()' should be avoided"), + "M321": QCoreApplication.translate( + "MiscellaneousChecker", + "use of 'datetime.time()' without 'tzinfo' argument should be" + " avoided"), "M501": QCoreApplication.translate( "MiscellaneousChecker", "Python does not support the unary prefix increment"),