fierce-park-88503
08/05/2019, 3:14 PMblack
, but some of its choices go against some of the checksenough-analyst-54434
08/05/2019, 3:42 PM$ ./pants options | grep pycheck | grep ignore
pycheck-pycodestyle.ignore = ['E121', 'E124', 'E125', 'E127', 'E128', 'E401', 'E111', 'W291', 'W293', 'E701', 'E301', 'E302', 'W292'] (from HARDCODED)
pycheck-pyflakes.ignore = [] (from HARDCODED)
In this specific case, I think you want to add to the default pycheck-pycodestyle.ignore
, ie add something like this to your `pants.ini`:
$ cat << EOF >> pants.ini
> [pycheck-pycodestyle]
> ignore: +['W503']
> EOF
Which will yield:
$ ./pants options | grep pycheck | grep ignore
pycheck-pycodestyle.ignore = ['E121', 'E124', 'E125', 'E127', 'E128', 'E401', 'E111', 'W291', 'W293', 'E701', 'E301', 'E302', 'W292', 'W503'] (from CONFIG in pants.ini)
pycheck-pyflakes.ignore = [] (from HARDCODED)
I got that particular value from here: https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codeswitty-crayon-22786
08/05/2019, 5:10 PMblack
if you have the time!hundreds-father-404
08/06/2019, 1:17 AM