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.

Fix flake8 F405 complains?

See original GitHub issue

Right after project generation, flake8 complains about lot of F405 in local and production settings files. Should we ignore those files with # flake8: noqa or just ignore concerned lines with # noqa?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
luzfcbcommented, Jun 18, 2016

I would not want to mute F405 completely, since import star is a bad practice. leaves debug incredibly difficult and confusing. However, our use of import star in django configuration file is a case where The Zen of Python: practicality beats purity it is applied.

from https://gitlab.com/pycqa/flake8/issues/130#note_12529319, this will be resolved in flake8 3.0.0 . apparently we will be able to use: # noqa: F405

0reactions
valerymeloucommented, Jul 6, 2016

Thanks @luzfcb , edited.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix flake8 F405 complains? · Issue #631 - GitHub
Right after project generation, flake8 complains about lot of F405 in local and production settings files. Should we ignore those files with ...
Read more >
flake8 to ignore warning F405 on multiple lines - Stack Overflow
Because of this flake8 is complaining on multiple lines with F405 code. I have disabled this for one line using #noqa but since...
Read more >
Ignoring Errors with Flake8 — flake8 3.1.1 documentation
This tells Flake8 to ignore any error codes starting with E1 , E23 , or W503 while it is running. Note. The documentation...
Read more >
Name may be undefined, or defined from star imports
It means that the variable name could be undefined, but flake8 cannot be sure because it also could also be imported in the...
Read more >
Writing better Python code, automatically - mje.nz
The new main appears to work normally, but if the config file is not present it fails with UnboundLocalError . Flake8 catches the...
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