Skip to main content
21 events
when toggle format what by license comment
Feb 10, 2021 at 11:39 vote accept alper
Feb 8, 2021 at 20:54 history edited alper CC BY-SA 4.0
added 107 characters in body
Jan 28, 2021 at 14:21 answer added Ian timeline score: 1
Jan 28, 2021 at 11:31 history edited alper CC BY-SA 4.0
added 2 characters in body
S Dec 15, 2020 at 2:01 history bounty ended CommunityBot
S Dec 15, 2020 at 2:01 history notice removed CommunityBot
Dec 11, 2020 at 9:27 comment added Ian You may have other errors in your code, beside unused imports - try to run flake8 in terminal with a command such as: flake8 --isolated --output-file yourfile.log yourfile.py and then add error numbers to your #noqa. Also, you can double-check with pylint.
Dec 10, 2020 at 10:50 comment added alper @D.Gillis I updated my questions with output of flycheck-verify-setup but I was able to get value for flycheck-checkers from describe-variable; please let me know if you require any more information
Dec 10, 2020 at 10:49 history edited alper CC BY-SA 4.0
added 1558 characters in body
Dec 10, 2020 at 3:01 comment added D. Gillis It seems like your flycheck is running a Mypy checker. I think this was done outside of Elpy, since I don't believe Elpy directly supports running more than one checker. I believe I have solved your problem, but I think it would be good to provide some more details to help other users who may find this question. Can you run the command flycheck-verify-setup and write the enabled checkers into your question? I expect that python-mypy will be enabled. If it is not, however, please provide the value of the variable flycheck-checkers.
Dec 8, 2020 at 11:25 comment added alper I wasn't able to run elpy-syntax-checker and python-flymake-command in the M-x; seems like they do not exist
Dec 8, 2020 at 11:15 comment added alper Thanks # type: ignore works on my end.For python-check-command I am having /home/alper/venv/lib/python3.7/site-packages is in the MYPYPATH. Please remove it.
Dec 7, 2020 at 7:29 comment added D. Gillis I think the warning you are getting is coming from some kind of static analyzer (such as jedi or mypy) other than flake8, which would explain why # NOQA doesn't work here. Unless it has changed recently, flake8 does not look at types, so it wouldn't be able to return a warning about an AttributeError. If the error is from mypy, adding the comment # type: ignore may work (see: stackoverflow.com/questions/49220022). If it does not work, can you provide the values of elpy-syntax-checker,python-check-command, and python-flymake-command in the buffer where this occurs?
Dec 7, 2020 at 0:51 history edited alper CC BY-SA 4.0
added 604 characters in body
S Dec 7, 2020 at 0:49 history bounty started alper
S Dec 7, 2020 at 0:49 history notice added alper Authoritative reference needed
Dec 7, 2020 at 0:45 history edited alper CC BY-SA 4.0
added 604 characters in body
Dec 7, 2020 at 0:41 comment added alper @D.Gillis not sure but I still have the same error even pyflakes is not defined in my .emacs file and seems like flake8 is enables: Syntax checker....: flake8 (/home/user/.local/bin/flake8)
Jul 8, 2020 at 12:02 comment added alper Hm as I understand I have to run pyflakes under flake8. I think I am already using flake8 so I just remove pyflakes from .emacs and pip packages should resolve it
Jul 8, 2020 at 5:53 comment added D. Gillis Pyflakes doesn't appear to support the # NOQA (or similar) syntax for ignoring errors. See (stackoverflow.com/questions/5033727/…) and (github.com/PyCQA/pyflakes/issues/431). You likely want to use flake8 instead of pyflakes as a syntax checker, which will allow your # NOQA comments to work again.
Jul 5, 2020 at 21:03 history asked alper CC BY-SA 4.0