question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

python-no-log-warn catches valid methods

See original GitHub issue

The standard library package warning has a .warn() method. This check incorrectly blocks when that method is used.

The description states this is a “A quick check for the deprecated .warn() method of python loggers.”

As a user, I would expect this check to only check logger objects for usages of the .warn method. What I experience is that warnings.warn() is being flagged.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
asottilecommented, Jul 24, 2019

pre-commit run --all-files 😉

0reactions
asottilecommented, Jul 24, 2019

via #18

Read more comments on GitHub >

github_iconTop Results From Across the Web

Style - Scikit-HEP
Flake8. Flake8 can check a collection of good practices for you, ranging from simple style to things that might confuse or detract users,...
Read more >
Writing better Python code, automatically - mje.nz
Step 1: catching bugs and anti-patterns; Step 2: enforcing best practices; Step 3: maintaining a consistent style; Step 4: bonus points.
Read more >
ignore doctests/docstrings with pyflakes/pylint - splunktool
When the IGNORE_EXCEPTION_DETAIL doctest option is specified, everything following the leftmost colon and any module information in the ...
Read more >
idesolver [python]: Datasheet - Package Galaxy
... for all the input functions - Catch error for complex valued functions when y_0 is real, ... + informational: true ... +...
Read more >
The pygrep-hooks from pre-commit - GithubHelp
python-no-log-warn catches valid methods. The standard library package warning has a .warn() method. This check incorrectly blocks when that method is used.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found