- Drop Python 3.8 support.
- Support Python 3.13.
Add rule LOG015 that detects use of the root logger through calls like
logging.info()
.Thanks to John Litborn in PR #96.
Extend LOG003 disallowed
extra
keys to includemessage
.Thanks to Bartek Ogryczak in PR #77.
- Add rule LOG013 that detects mismatches between named
%
-style formatting placeholders and keys in dict argument. - Add rule LOG014 that detects
exc_info=True
outside of exception handlers.
- Fix LOG012 false positive with unpacked arguments like
*args
. - Fix LOG012 false positive with
%%
in formatting strings.
- Add rule LOG012 that detects mismatches between
%
-style formatting placeholders and arguments.
- Add rule LOG009 that detects use of the undocumented
WARN
constant. - Add rule LOG010 that detects passing calls to
exception()
passing a handled exception as the first argument. - Add rule LOG011 that detects pre-formatted log messages.
- LOG001: Avoid detecting inside function definitions when using
Logger
directly. - Add rule LOG005 that recomends
exception()
overerror()
withinexcept
clauses. - Add rule LOG006 that detects redundant
exc_info
arguments in calls toexception()
. - Add rule LOG007 that detects
exception()
calls with falsyexc_info
arguments, which are better written aserror()
. - Add rule LOG008 that detects calls to the deprecated, undocumented
warn()
method.
- Change error codes to start with
LOG
so they are more specific.
- Correct entry point definition so codes are picked up by default.
- Initial release.