flake8

Disable inspection in PyCharm

廉价感情. 提交于 2021-01-29 10:57:41
问题 There are several articles explaining how to disable inspection in PyCharm by clicking my way around. I do not like that because: It does not work for me I have no idea what PyCharm is doing I want to disable PEP8 checking in certain cases, and not be bound to PyCharm In flake8 I can ignore errors with # noqa , but PyCharm does not seem to respect that consistently. How can I tell (in code) PyCharm to ignore errors in a specific line of code? 回答1: If you click alt+enter on the errors, you can

Travis-CI: Do not fail build because of linter warnings

余生颓废 提交于 2021-01-24 08:11:39
问题 I have an old python project that I am trying to progressively clean up using flake8 (to warn about PEP8 issues). I use Travis for continuous integration and want my build to fail if any unit test fails. However, I do not want my build to fail simply because flake8 produced a warning (e.g., about something minor like trailing white space). How do I configure Travis to output flake8 warnings (so that I can resolve them as I have time) without causing them to fail the build? My .travis.yml is

Travis-CI: Do not fail build because of linter warnings

元气小坏坏 提交于 2021-01-24 08:08:18
问题 I have an old python project that I am trying to progressively clean up using flake8 (to warn about PEP8 issues). I use Travis for continuous integration and want my build to fail if any unit test fails. However, I do not want my build to fail simply because flake8 produced a warning (e.g., about something minor like trailing white space). How do I configure Travis to output flake8 warnings (so that I can resolve them as I have time) without causing them to fail the build? My .travis.yml is

Travis-CI: Do not fail build because of linter warnings

徘徊边缘 提交于 2021-01-24 08:07:16
问题 I have an old python project that I am trying to progressively clean up using flake8 (to warn about PEP8 issues). I use Travis for continuous integration and want my build to fail if any unit test fails. However, I do not want my build to fail simply because flake8 produced a warning (e.g., about something minor like trailing white space). How do I configure Travis to output flake8 warnings (so that I can resolve them as I have time) without causing them to fail the build? My .travis.yml is

Travis-CI: Do not fail build because of linter warnings

对着背影说爱祢 提交于 2021-01-24 08:06:14
问题 I have an old python project that I am trying to progressively clean up using flake8 (to warn about PEP8 issues). I use Travis for continuous integration and want my build to fail if any unit test fails. However, I do not want my build to fail simply because flake8 produced a warning (e.g., about something minor like trailing white space). How do I configure Travis to output flake8 warnings (so that I can resolve them as I have time) without causing them to fail the build? My .travis.yml is

Travis-CI: Do not fail build because of linter warnings

邮差的信 提交于 2021-01-24 08:06:09
问题 I have an old python project that I am trying to progressively clean up using flake8 (to warn about PEP8 issues). I use Travis for continuous integration and want my build to fail if any unit test fails. However, I do not want my build to fail simply because flake8 produced a warning (e.g., about something minor like trailing white space). How do I configure Travis to output flake8 warnings (so that I can resolve them as I have time) without causing them to fail the build? My .travis.yml is

Exclude .env directory from flake8 tests?

巧了我就是萌 提交于 2020-12-10 19:10:39
问题 Problem I'm getting thousands of flake8 errors stemming from my local .env. An example of some of the error messages: ./env/lib/python3.7/site-packages/pip/_vendor/pyparsing.py:3848:80: E501 line too long (85 > 79 characters) ./env/lib/python3.7/site-packages/pip/_vendor/pyparsing.py:3848:84: E202 whitespace before ')' ./env/lib/python3.7/site-packages/pip/_vendor/pyparsing.py:3855:51: E201 whitespace after '(' ./env/lib/python3.7/site-packages/pip/_vendor/pyparsing.py:3855:65: E202

How do I get flake8 to reliably ignore rules in VS Code?

别等时光非礼了梦想. 提交于 2020-11-30 02:14:07
问题 Two things that annoy me. First is the warning Flake8 gives me when I type more than 80 characters on a line. Second is the warnings I get when I haven't yet used a module name that I imported. I've looked at all the documentation on using Flake8 in the terminal. No use. flake8 --ignore=E402 flake8 --max-line-length=120 This doesn't work. At least VS Code doesn't show any effect. 回答1: Add your arguments to your USER SETTINGS json file like this: "python.linting.flake8Args": [ "--max-line